@Internal public class RecordWriterOutput<OUT> extends Object implements WatermarkGaugeExposingOutput<StreamRecord<OUT>>
Output that sends data using a RecordWriter.| 构造器和说明 |
|---|
RecordWriterOutput(org.apache.flink.runtime.io.network.api.writer.RecordWriter<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriter,
org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer,
org.apache.flink.util.OutputTag outputTag,
boolean supportsUnalignedCheckpoints) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abortCheckpoint(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause) |
void |
alignedBarrierTimeout(long checkpointId) |
void |
broadcastEvent(org.apache.flink.runtime.event.AbstractEvent event,
boolean isPriorityEvent) |
void |
close() |
<X> void |
collect(org.apache.flink.util.OutputTag<X> outputTag,
StreamRecord<X> record)
Emits a record to the side output identified by the given
OutputTag. |
void |
collect(StreamRecord<OUT> record) |
void |
emitLatencyMarker(LatencyMarker latencyMarker) |
void |
emitWatermark(Watermark mark)
Emits a
Watermark from an operator. |
void |
emitWatermarkStatus(WatermarkStatus watermarkStatus) |
void |
flush() |
org.apache.flink.metrics.Gauge<Long> |
getWatermarkGauge() |
public RecordWriterOutput(org.apache.flink.runtime.io.network.api.writer.RecordWriter<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriter, org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer, org.apache.flink.util.OutputTag outputTag, boolean supportsUnalignedCheckpoints)
public void collect(StreamRecord<OUT> record)
collect 在接口中 org.apache.flink.util.Collector<StreamRecord<OUT>>public <X> void collect(org.apache.flink.util.OutputTag<X> outputTag,
StreamRecord<X> record)
OutputOutputTag.collect 在接口中 Output<StreamRecord<OUT>>record - The record to collect.public void emitWatermark(Watermark mark)
OutputWatermark 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.
emitWatermark 在接口中 Output<StreamRecord<OUT>>public void emitWatermarkStatus(WatermarkStatus watermarkStatus)
emitWatermarkStatus 在接口中 Output<StreamRecord<OUT>>public void emitLatencyMarker(LatencyMarker latencyMarker)
emitLatencyMarker 在接口中 Output<StreamRecord<OUT>>public void broadcastEvent(org.apache.flink.runtime.event.AbstractEvent event,
boolean isPriorityEvent)
throws IOException
IOExceptionpublic void alignedBarrierTimeout(long checkpointId)
throws IOException
IOExceptionpublic void abortCheckpoint(long checkpointId,
org.apache.flink.runtime.checkpoint.CheckpointException cause)
public void flush()
throws IOException
IOExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 org.apache.flink.util.Collector<StreamRecord<OUT>>public org.apache.flink.metrics.Gauge<Long> getWatermarkGauge()
getWatermarkGauge 在接口中 WatermarkGaugeExposingOutput<StreamRecord<OUT>>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.