Passing a custom SourceContext to a SourceFunction
Posted by
Debasish Ghosh on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Passing-a-custom-SourceContext-to-a-SourceFunction-tp27861.html
Hi -
I have a custom SourceFunction ..
class MySourceFunction[T](data: Seq[T]) extends SourceFunction[T] {
def run(ctx: SourceContext[T]): Unit = { data.foreach(d ⇒ ctx.collect(d))
} }
Any help will be appreciated.