Class AssociatedRecords
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.join.stream.utils.AssociatedRecords
-
public class AssociatedRecords extends Object
TheAssociatedRecordsis the records associated to the input row. It is a wrapper ofList<OuterRecord>which provides two helpful methodsgetRecords()andgetOuterRecords(). See the method Javadoc for more details.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.Iterable<OuterRecord>getOuterRecords()Gets the iterable ofOuterRecordwhich composites record and numOfAssociations.Iterable<org.apache.flink.table.data.RowData>getRecords()Gets the iterable of records.booleanisEmpty()intsize()
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
getRecords
public Iterable<org.apache.flink.table.data.RowData> getRecords()
Gets the iterable of records. This is usually be called when theAssociatedRecordsis from inner side.
-
getOuterRecords
public Iterable<OuterRecord> 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
-
-