Interface Collector<OUT>
@Experimental
public interface Collector<OUT>
This class take response for collecting data to output stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCollect record to output stream.voidcollectAndOverwriteTimestamp(OUT record, long timestamp) Overwrite the timestamp of this record and collect it to output stream.
-
Method Details
-
collect
Collect record to output stream.- Parameters:
record- to be collected.
-
collectAndOverwriteTimestamp
Overwrite the timestamp of this record and collect it to output stream.- Parameters:
record- to be collected.timestamp- of the processed data.
-