Class AssociatedRecords
java.lang.Object
org.apache.flink.table.runtime.operators.join.stream.utils.AssociatedRecords
The
AssociatedRecords is the records associated to the input row. It is a wrapper of
List<OuterRecord> which provides two helpful methods getRecords() and getOuterRecords(). See the method Javadoc for more details.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.api.common.state.v2.StateFuture<AssociatedRecords>fromAsyncStateView(org.apache.flink.table.data.RowData input, boolean inputIsLeft, JoinRecordAsyncStateView otherSideAsyncStateView, JoinCondition joinCondition) Creates anAssociatedRecordswhich represents the records associated to the input row.static AssociatedRecordsfromSyncStateView(org.apache.flink.table.data.RowData input, boolean inputIsLeft, JoinRecordStateView otherSideStateView, JoinCondition condition) Creates anAssociatedRecordswhich represents the records associated to the input row.Gets the iterable ofOuterRecordwhich composites record and numOfAssociations.Iterable<org.apache.flink.table.data.RowData>Gets the iterable of records.booleanisEmpty()intsize()
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
getRecords
Gets the iterable of records. This is usually be called when theAssociatedRecordsis from inner side. -
getOuterRecords
Gets the iterable ofOuterRecordwhich composites record and numOfAssociations. This is usually be called when theAssociatedRecordsis from outer side. -
fromSyncStateView
public static AssociatedRecords fromSyncStateView(org.apache.flink.table.data.RowData input, boolean inputIsLeft, JoinRecordStateView otherSideStateView, JoinCondition condition) throws Exception Creates anAssociatedRecordswhich represents the records associated to the input row.This method is used in the sync state join operator.
- Throws:
Exception
-
fromAsyncStateView
public static org.apache.flink.api.common.state.v2.StateFuture<AssociatedRecords> fromAsyncStateView(org.apache.flink.table.data.RowData input, boolean inputIsLeft, JoinRecordAsyncStateView otherSideAsyncStateView, JoinCondition joinCondition) throws Exception Creates anAssociatedRecordswhich represents the records associated to the input row.This method is used in the async state join operator.
- Throws:
Exception
-