Package org.apache.wayang.java.operators
Class JavaObjectFileSink.StreamChunker
java.lang.Object
org.apache.wayang.java.operators.JavaObjectFileSink.StreamChunker
- Enclosing class:
- JavaObjectFileSink<T>
Utility to chunk a
Stream
into portions of fixed size.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StreamChunker
-
-
Method Details
-
push
Add a new element to the current chunk. Fire, if the chunk is complete. -
fire
public void fire()Apply the specifiedaction
to the current chunk and prepare for a new chunk.
-