- Type Parameters:
T - type of object in the rdd
- All Implemented Interfaces:
- Serializable, org.apache.spark.api.java.function.Function2<org.apache.spark.api.java.JavaRDD<T>,org.apache.spark.streaming.Time,Void>
public class StreamingBatchSinkFunction<T>
extends Object
implements org.apache.spark.api.java.function.Function2<org.apache.spark.api.java.JavaRDD<T>,org.apache.spark.streaming.Time,Void>
Function used to write a batch of data to a batch sink for use with a JavaDStream.
note: not using foreachRDD(VoidFunction2) method, because spark 1.3 doesn't have VoidFunction2.
- See Also:
- Serialized Form