Class UnsliceAssigners
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.tvf.unslicing.UnsliceAssigners
-
@Internal public class UnsliceAssigners extends Object
Utilities to createUnsliceAssigners.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnsliceAssigners.SessionUnsliceAssignerTheUnsliceAssignerfor session windows.static classUnsliceAssigners.WindowedUnsliceAssignerTheUnsliceAssignerfor elements have been merged into unslicing windows and attached window start and end timestamps.
-
Constructor Summary
Constructors Constructor Description UnsliceAssigners()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnsliceAssigners.SessionUnsliceAssignersession(int rowtimeIndex, ZoneId shiftTimeZone, Duration gap)Creates a session windowUnsliceAssignerthat assigns elements to windows based on the timestamp.static UnsliceAssigners.WindowedUnsliceAssignerwindowed(int windowStartIndex, int windowEndIndex, UnsliceAssigner<TimeWindow> innerAssigner)Creates aUnsliceAssignerthat assigns elements which has been attached window start and window end timestamp to windows.
-
-
-
Method Detail
-
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.
-
-