Interface TwoInputWindowContext<IN1,IN2>
- All Superinterfaces:
WindowContext
This interface extends
WindowContext and provides additional functionality for writing
and reading window data of two input window.-
Method Summary
Modifier and TypeMethodDescriptionRead input1's records from the window's state.Read input2's records from the window's state.voidputRecord1(IN1 record) Write records from input1 into the window's state.voidputRecord2(IN2 record) Write records from input2 into the window's state.Methods inherited from interface org.apache.flink.datastream.api.extension.window.context.WindowContext
getEndTime, getStartTime, getWindowState, getWindowState, getWindowState, getWindowState, getWindowState
-
Method Details
-
putRecord1
Write records from input1 into the window's state.- Parameters:
record- The record from input1 to be written into the window's state.
-
getAllRecords1
Read input1's records from the window's state.- Returns:
- Iterable of input1's records, which could be null if input1 has no data.
-
putRecord2
Write records from input2 into the window's state.- Parameters:
record- The record from input2 to be written into the window's state.
-
getAllRecords2
Read input2's records from the window's state.- Returns:
- Iterable of input2's records, which could be null if input2 has no data.
-