public class DirectedOutput<OUT> extends Object implements OperatorChain.WatermarkGaugeExposingOutput<StreamRecord<OUT>>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Output<StreamRecord<OUT>>[] |
allOutputs |
protected HashMap<String,Output<StreamRecord<OUT>>[]> |
outputMap |
protected OutputSelector<OUT>[] |
outputSelectors |
protected Output<StreamRecord<OUT>>[] |
selectAllOutputs |
protected WatermarkGauge |
watermarkGauge |
| 构造器和说明 |
|---|
DirectedOutput(List<OutputSelector<OUT>> outputSelectors,
List<? extends org.apache.flink.api.java.tuple.Tuple2<? extends Output<StreamRecord<OUT>>,StreamEdge>> outputs) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
<X> void |
collect(org.apache.flink.util.OutputTag<X> outputTag,
StreamRecord<X> record)
Emits a record 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. |
org.apache.flink.metrics.Gauge<Long> |
getWatermarkGauge() |
protected Set<Output<StreamRecord<OUT>>> |
selectOutputs(StreamRecord<OUT> record) |
protected final OutputSelector<OUT>[] outputSelectors
protected final Output<StreamRecord<OUT>>[] selectAllOutputs
protected final HashMap<String,Output<StreamRecord<OUT>>[]> outputMap
protected final Output<StreamRecord<OUT>>[] allOutputs
protected final WatermarkGauge watermarkGauge
public DirectedOutput(List<OutputSelector<OUT>> outputSelectors, List<? extends org.apache.flink.api.java.tuple.Tuple2<? extends Output<StreamRecord<OUT>>,StreamEdge>> outputs)
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 emitLatencyMarker(LatencyMarker latencyMarker)
emitLatencyMarker 在接口中 Output<StreamRecord<OUT>>protected Set<Output<StreamRecord<OUT>>> selectOutputs(StreamRecord<OUT> record)
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 close()
close 在接口中 org.apache.flink.util.Collector<StreamRecord<OUT>>public org.apache.flink.metrics.Gauge<Long> getWatermarkGauge()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.