Class Epoch<OUT>


  • public class Epoch<OUT>
    extends Object
    All inputs are segment into distinct epochs, marked by the arrival of non-record inputs. Records are assigned to a unique epoch based on their arrival.
    • Constructor Detail

      • Epoch

        public Epoch​(org.apache.flink.streaming.api.watermark.Watermark watermark)
    • Method Detail

      • collect

        public void collect​(org.apache.flink.streaming.api.operators.async.queue.StreamElementQueueEntry<OUT> resultFuture)
        Add resultFuture to the output queue.
      • setOutput

        public void setOutput​(Consumer<org.apache.flink.streaming.api.operators.async.queue.StreamElementQueueEntry<OUT>> outputConsumer)
      • decrementCount

        public void decrementCount()
      • incrementCount

        public void incrementCount()
      • getWatermark

        public org.apache.flink.streaming.api.watermark.Watermark getWatermark()
      • close

        public void close​(Runnable advanceWatermark)
        Close this epoch.
      • free

        public void free()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getOngoingRecordCount

        @VisibleForTesting
        public int getOngoingRecordCount()