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 JoinConditionWithNullFilters |
joinCondition |
protected static String |
LEFT_RECORDS_STATE_NAME |
protected JoinInputSideSpec |
leftInputSideSpec |
protected long |
leftStateRetentionTime |
protected InternalTypeInfo<RowData> |
leftType |
protected static String |
RIGHT_RECORDS_STATE_NAME |
protected JoinInputSideSpec |
rightInputSideSpec |
protected long |
rightStateRetentionTime |
protected InternalTypeInfo<RowData> |
rightType |
chainingStrategy, config, lastRecordAttributes1, lastRecordAttributes2, latencyStats, LOG, metrics, output, processingTimeService, stateHandler, stateKeySelector1, stateKeySelector2, timeServiceManager
Constructor and Description |
---|
AbstractStreamingJoinOperator(InternalTypeInfo<RowData> leftType,
InternalTypeInfo<RowData> rightType,
GeneratedJoinCondition generatedJoinCondition,
JoinInputSideSpec leftInputSideSpec,
JoinInputSideSpec rightInputSideSpec,
boolean[] filterNullKeys,
long leftStateRetentionTime,
long rightStateRetentionTime) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method is called at the very end of the operator's life, both in the case of a
successful completion of the operation, and in the case of a failure and canceling.
|
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic, e.g. state initialization.
|
finish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, snapshotState, useSplittableTimers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processElement1, processElement2, processLatencyMarker1, processLatencyMarker2, processRecordAttributes1, processRecordAttributes2, processWatermark1, processWatermark2, processWatermarkStatus1, processWatermarkStatus2
finish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotState
notifyCheckpointAborted, notifyCheckpointComplete
getCurrentKey, setCurrentKey
hasKeyContext
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 leftStateRetentionTime
protected final long rightStateRetentionTime
protected transient JoinConditionWithNullFilters joinCondition
protected transient TimestampedCollector<RowData> collector
public AbstractStreamingJoinOperator(InternalTypeInfo<RowData> leftType, InternalTypeInfo<RowData> rightType, GeneratedJoinCondition generatedJoinCondition, JoinInputSideSpec leftInputSideSpec, JoinInputSideSpec rightInputSideSpec, boolean[] filterNullKeys, long leftStateRetentionTime, long rightStateRetentionTime)
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
StreamOperator
This method is expected to make a thorough effort to release all resources that the operator has acquired.
NOTE:It can not emit any records! If you need to emit records at the end of
processing, do so in the StreamOperator.finish()
method.
close
in interface StreamOperator<RowData>
close
in class AbstractStreamOperator<RowData>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.