Interface JoinRecordStateView
-
- All Known Subinterfaces:
OuterJoinRecordStateView
public interface JoinRecordStateViewAJoinRecordStateViewis a view to the join state. It encapsulates the join state and provides some APIs facing the input records. The join state is used to store input records. The structure of the join state is vary depending on theJoinInputSideSpec.For example: when the
JoinInputSideSpecis JoinKeyContainsUniqueKey, we will useValueStateto store records which has better performance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRecord(org.apache.flink.table.data.RowData record)Add a new record to the state view.Iterable<org.apache.flink.table.data.RowData>getRecords()Gets all the records under the current context (i.e.voidretractRecord(org.apache.flink.table.data.RowData record)Retract the record from the state view.
-
-
-
Method Detail
-
addRecord
void addRecord(org.apache.flink.table.data.RowData record) throws ExceptionAdd a new record to the state view.- Throws:
Exception
-
retractRecord
void retractRecord(org.apache.flink.table.data.RowData record) throws ExceptionRetract the record from the state view.- Throws:
Exception
-
-