public abstract class InputBase extends Object implements Input<RowData>, KeyContextHandler
Input
used in MultipleInputStreamOperatorBase
.Constructor and Description |
---|
InputBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasKeyContext()
Whether the
Input has "KeyContext". |
void |
setKeyContextElement(StreamRecord<RowData> record)
Set the correct key context before processing the
record . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processElement, processLatencyMarker, processRecordAttributes, processWatermark, processWatermarkStatus
hasKeyContext1, hasKeyContext2
public void setKeyContextElement(StreamRecord<RowData> record) throws Exception
Input
record
. 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
in interface Input<RowData>
Exception
public boolean hasKeyContext()
KeyContextHandler
Input
has "KeyContext". If false, we can omit the call of Input.setKeyContextElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>)
for each record.hasKeyContext
in interface KeyContextHandler
Input
has "KeyContext", false otherwise.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.