Class 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 Detail

      • KeyCheckedOutputCollector

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

      • collect

        public void collect​(OUT outputRecord)
      • collectAndOverwriteTimestamp

        public void collectAndOverwriteTimestamp​(OUT outputRecord,
                                                 long timestamp)