public abstract class AbstractStreamingJoinOperator extends AbstractStreamOperator<RowData> implements TwoInputStreamOperator<RowData,RowData,RowData>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractStreamingJoinOperator.AssociatedRecords
The
AbstractStreamingJoinOperator.AssociatedRecords is the records associated to the input row. |
protected static class |
AbstractStreamingJoinOperator.OuterRecord
An
AbstractStreamingJoinOperator.OuterRecord is a composite of record and numOfAssociations . |
Modifier and Type | Field and Description |
---|---|
protected TimestampedCollector<RowData> |
collector |
protected org.apache.flink.table.runtime.operators.join.stream.AbstractStreamingJoinOperator.JoinConditionWithNullFilters |
joinCondition |
protected static String |
LEFT_RECORDS_STATE_NAME |
protected JoinInputSideSpec |
leftInputSideSpec |
protected InternalTypeInfo<RowData> |
leftType |
protected static String |
RIGHT_RECORDS_STATE_NAME |
protected JoinInputSideSpec |
rightInputSideSpec |
protected InternalTypeInfo<RowData> |
rightType |
protected long |
stateRetentionTime |
chainingStrategy, config, latencyStats, LOG, metrics, output, processingTimeService
Constructor and Description |
---|
AbstractStreamingJoinOperator(InternalTypeInfo<RowData> leftType,
InternalTypeInfo<RowData> rightType,
GeneratedJoinCondition generatedJoinCondition,
JoinInputSideSpec leftInputSideSpec,
JoinInputSideSpec rightInputSideSpec,
boolean[] filterNullKeys,
long stateRetentionTime) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method is called after all records have been added to the operators via the methods
Input.processElement(StreamRecord) , or TwoInputStreamOperator.processElement1(StreamRecord) and TwoInputStreamOperator.processElement2(StreamRecord) . |
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic, e.g.
|
dispose, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotState, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processElement1, processElement2, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2
dispose, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotState
notifyCheckpointAborted, notifyCheckpointComplete
getCurrentKey, setCurrentKey
protected static final String LEFT_RECORDS_STATE_NAME
protected static final String RIGHT_RECORDS_STATE_NAME
protected final InternalTypeInfo<RowData> leftType
protected final InternalTypeInfo<RowData> rightType
protected final JoinInputSideSpec leftInputSideSpec
protected final JoinInputSideSpec rightInputSideSpec
protected final long stateRetentionTime
protected transient org.apache.flink.table.runtime.operators.join.stream.AbstractStreamingJoinOperator.JoinConditionWithNullFilters joinCondition
protected transient TimestampedCollector<RowData> collector
public AbstractStreamingJoinOperator(InternalTypeInfo<RowData> leftType, InternalTypeInfo<RowData> rightType, GeneratedJoinCondition generatedJoinCondition, JoinInputSideSpec leftInputSideSpec, JoinInputSideSpec rightInputSideSpec, boolean[] filterNullKeys, long stateRetentionTime)
public void open() throws Exception
AbstractStreamOperator
The default implementation does nothing.
open
in interface StreamOperator<RowData>
open
in class AbstractStreamOperator<RowData>
Exception
- An exception in this method causes the operator to fail.public void close() throws Exception
AbstractStreamOperator
Input.processElement(StreamRecord)
, or TwoInputStreamOperator.processElement1(StreamRecord)
and TwoInputStreamOperator.processElement2(StreamRecord)
.
The method is expected to flush all remaining buffered data. Exceptions during this flushing of buffered should be propagated, in order to cause the operation to be recognized asa failed, because the last data items are not processed properly.
close
in interface StreamOperator<RowData>
close
in class AbstractStreamOperator<RowData>
Exception
- An exception in this method causes the operator to fail.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.