Class JavaObjectFileSink.StreamChunker

java.lang.Object
org.apache.wayang.java.operators.JavaObjectFileSink.StreamChunker
Enclosing class:
JavaObjectFileSink<T>

public static class JavaObjectFileSink.StreamChunker extends Object
Utility to chunk a Stream into portions of fixed size.
  • Constructor Details

  • Method Details

    • push

      public void push(Object obj)
      Add a new element to the current chunk. Fire, if the chunk is complete.
    • fire

      public void fire()
      Apply the specified action to the current chunk and prepare for a new chunk.