Class KeyCheckedOutputCollector<KEY,OUT>

java.lang.Object
org.apache.flink.datastream.impl.common.TimestampCollector<OUT>
org.apache.flink.datastream.impl.common.KeyCheckedOutputCollector<KEY,OUT>
All Implemented Interfaces:
org.apache.flink.datastream.api.common.Collector<OUT>

public class KeyCheckedOutputCollector<KEY,OUT> extends TimestampCollector<OUT>
This output checks whether the current key of the output record and the key extracted with a specific key selector are exactly the same.
  • Constructor Details

    • KeyCheckedOutputCollector

      public KeyCheckedOutputCollector(TimestampCollector<OUT> collector, org.apache.flink.api.java.functions.KeySelector<OUT,KEY> outKeySelector, Supplier<KEY> currentKeyGetter)
  • Method Details

    • collect

      public void collect(OUT outputRecord)
    • collectAndOverwriteTimestamp

      public void collectAndOverwriteTimestamp(OUT outputRecord, long timestamp)