@Experimental public abstract class AbstractInput<IN,OUT> extends Object implements Input<IN>
Input interface intended to be used when extending AbstractStreamOperatorV2.| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
inputId |
protected Output<StreamRecord<OUT>> |
output |
protected AbstractStreamOperatorV2<OUT> |
owner |
protected org.apache.flink.api.java.functions.KeySelector<?,?> |
stateKeySelector
KeySelector for extracting a key from an element being processed. |
| 构造器和说明 |
|---|
AbstractInput(AbstractStreamOperatorV2<OUT> owner,
int inputId) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
processLatencyMarker(LatencyMarker latencyMarker)
Processes a
LatencyMarker that arrived on the first input of this two-input operator. |
void |
processWatermark(Watermark mark)
Processes a
Watermark that arrived on the first input of this two-input operator. |
void |
processWatermarkStatus(WatermarkStatus watermarkStatus)
Processes a
WatermarkStatus that arrived on this input of the MultipleInputStreamOperator. |
void |
setKeyContextElement(StreamRecord record)
Set the correct key context before processing the
record. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessElement@Nullable protected final org.apache.flink.api.java.functions.KeySelector<?,?> stateKeySelector
KeySelector for extracting a key from an element being processed. This is used to
scope keyed state to a key. This is null if the operator is not a keyed operator.
This is for elements from the first input.
protected final AbstractStreamOperatorV2<OUT> owner
protected final int inputId
protected final Output<StreamRecord<OUT>> output
public AbstractInput(AbstractStreamOperatorV2<OUT> owner, int inputId)
public void processWatermark(Watermark mark) throws Exception
InputWatermark that arrived on the first input of this two-input operator.
This method is guaranteed to not be called concurrently with other methods of the operator.processWatermark 在接口中 Input<IN>ExceptionWatermarkpublic void processLatencyMarker(LatencyMarker latencyMarker) throws Exception
InputLatencyMarker that arrived on the first input of this two-input operator.
This method is guaranteed to not be called concurrently with other methods of the operator.processLatencyMarker 在接口中 Input<IN>ExceptionLatencyMarkerpublic void processWatermarkStatus(WatermarkStatus watermarkStatus) throws Exception
InputWatermarkStatus that arrived on this input of the MultipleInputStreamOperator. This method is guaranteed to not be called concurrently with
other methods of the operator.processWatermarkStatus 在接口中 Input<IN>ExceptionWatermarkStatuspublic void setKeyContextElement(StreamRecord record) throws Exception
Inputrecord. Used for example to extract
key from the record and pass that key to the state backends. This method is
guaranteed to not be called concurrently with other methods of the operator.setKeyContextElement 在接口中 Input<IN>ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.