Interface to implement custom data sink where result of a DAG is typically written a DataSink could be a data store like HBase or simply a console
General task that runs any DataSink
Utility that helps user to create a DAG ending in DataSink user should pass in a DataSink.
Utility that helps user to create a DAG ending in DataSink user should pass in a DataSink.
here is an example to build a DAG that does word count and write to KafkaSink
val split = Processor[Split](1) val sum = Processor[Sum](1) val sink = new KafkaSink() val sinkProcessor = DataSinkProcessor(sink, 1) val dag = split ~> sum ~> sink
Interface to implement custom data sink where result of a DAG is typically written a DataSink could be a data store like HBase or simply a console
An example would be like:
Subclass is required to be serializable