Class RecordWriterOutput<OUT>

    • Constructor Detail

      • RecordWriterOutput

        public RecordWriterOutput​(RecordWriter<SerializationDelegate<StreamRecord<OUT>>> recordWriter,
                                  org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer,
                                  org.apache.flink.util.OutputTag outputTag,
                                  boolean supportsUnalignedCheckpoints)
    • Method Detail

      • collect

        public void collect​(StreamRecord<OUT> record)
        Specified by:
        collect in interface org.apache.flink.util.Collector<OUT>
      • collect

        public <X> void collect​(org.apache.flink.util.OutputTag<X> outputTag,
                                StreamRecord<X> record)
        Description copied from interface: Output
        Emits a record to the side output identified by the given OutputTag.
        Specified by:
        collect in interface Output<OUT>
        record - The record to collect.
      • collectAndCheckIfChained

        public <X> boolean collectAndCheckIfChained​(org.apache.flink.util.OutputTag<X> outputTag,
                                                    StreamRecord<X> record)
        Specified by:
        collectAndCheckIfChained in interface OutputWithChainingCheck<OUT>
        Returns:
        true if the collected record has been emitted to a downstream subtask. Otherwise, false.
      • emitWatermark

        public void emitWatermark​(Watermark mark)
        Description copied from interface: Output
        Emits a Watermark from an operator. This watermark is broadcast to all downstream operators.

        A watermark specifies that no element with a timestamp lower or equal to the watermark timestamp will be emitted in the future.

        Specified by:
        emitWatermark in interface Output<OUT>
      • setNumRecordsOut

        public void setNumRecordsOut​(org.apache.flink.metrics.Counter numRecordsOut)
      • alignedBarrierTimeout

        public void alignedBarrierTimeout​(long checkpointId)
                                   throws IOException
        Throws:
        IOException
      • abortCheckpoint

        public void abortCheckpoint​(long checkpointId,
                                    CheckpointException cause)
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.apache.flink.util.Collector<OUT>