Class UnsliceAssigners
java.lang.Object
org.apache.flink.table.runtime.operators.window.tvf.unslicing.UnsliceAssigners
Utilities to create
UnsliceAssigners.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheUnsliceAssignerfor session windows.static classTheUnsliceAssignerfor elements have been merged into unslicing windows and attached window start and end timestamps. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a session windowUnsliceAssignerthat assigns elements to windows based on the timestamp.windowed(int windowStartIndex, int windowEndIndex, UnsliceAssigner<TimeWindow> innerAssigner) Creates aUnsliceAssignerthat assigns elements which has been attached window start and window end timestamp to windows.
-
Constructor Details
-
UnsliceAssigners
public UnsliceAssigners()
-
-
Method Details
-
session
public static UnsliceAssigners.SessionUnsliceAssigner session(int rowtimeIndex, ZoneId shiftTimeZone, Duration gap) Creates a session windowUnsliceAssignerthat assigns elements to windows based on the timestamp.- Parameters:
rowtimeIndex- The index of rowtime field in the input row,-1if based on processing time.shiftTimeZone- The shift timezone of the window, if the proctime or rowtime type is TIMESTAMP_LTZ, the shift timezone is the timezone user configured in TableConfig, other cases the timezone is UTC which means never shift when assigning windows.gap- The session timeout, i.e. the time gap between sessions
-
windowed
public static UnsliceAssigners.WindowedUnsliceAssigner windowed(int windowStartIndex, int windowEndIndex, UnsliceAssigner<TimeWindow> innerAssigner) Creates aUnsliceAssignerthat assigns elements which has been attached window start and window end timestamp to windows. The assigned windows doesn't need to be merged again.- Parameters:
windowStartIndex- the index of window start field in the input row, mustn't be a negative value.windowEndIndex- the index of window end field in the input row, mustn't be a negative value.
-