Interface TwoInputWindowContext<IN1,IN2>
-
- All Superinterfaces:
WindowContext
@Experimental public interface TwoInputWindowContext<IN1,IN2> extends WindowContext
This interface extendsWindowContextand provides additional functionality for writing and reading window data of two input window.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<IN1>getAllRecords1()Read input1's records from the window's state.Iterable<IN2>getAllRecords2()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 Detail
-
putRecord1
void putRecord1(IN1 record)
Write records from input1 into the window's state.- Parameters:
record- The record from input1 to be written into the window's state.
-
getAllRecords1
Iterable<IN1> 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
void putRecord2(IN2 record)
Write records from input2 into the window's state.- Parameters:
record- The record from input2 to be written into the window's state.
-
-