Class SliceAssigners.TumblingSliceAssigner
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.tvf.slicing.SliceAssigners.TumblingSliceAssigner
-
- All Implemented Interfaces:
Serializable,WindowAssigner,SliceAssigner,SliceUnsharedAssigner
- Enclosing class:
- SliceAssigners
public static final class SliceAssigners.TumblingSliceAssigner extends Object implements SliceUnsharedAssigner
TheSliceAssignerfor tumbling windows.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longassignSliceEnd(long timestamp)Iterable<Long>expiredSlices(long windowEnd)Returns an iterator of slices to expire when the given window is emitted.StringgetDescription()Returns a description of this window assigner.longgetLastWindowEnd(long sliceEnd)Returns the last window which the slice belongs to.longgetSliceEndInterval()Returns the interval of slice ends, i.e. the step size to advance of the slice end when a new slice assigned.longgetWindowStart(long windowEnd)Returns the corresponding window start timestamp of the given window end timestamp.SliceAssigners.TumblingSliceAssignerwithOffset(Duration offset)Creates a newSliceAssigners.TumblingSliceAssignerwith a new specified offset.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.slicing.SliceAssigner
assignSliceEnd
-
Methods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.WindowAssigner
isEventTime
-
-
-
-
Method Detail
-
withOffset
public SliceAssigners.TumblingSliceAssigner withOffset(Duration offset)
Creates a newSliceAssigners.TumblingSliceAssignerwith a new specified offset.
-
assignSliceEnd
public long assignSliceEnd(long timestamp)
-
getLastWindowEnd
public long getLastWindowEnd(long sliceEnd)
Description copied from interface:SliceAssignerReturns the last window which the slice belongs to. The window and slices are both identified by the end timestamp.- Specified by:
getLastWindowEndin interfaceSliceAssigner
-
getWindowStart
public long getWindowStart(long windowEnd)
Description copied from interface:SliceAssignerReturns the corresponding window start timestamp of the given window end timestamp.- Specified by:
getWindowStartin interfaceSliceAssigner
-
expiredSlices
public Iterable<Long> expiredSlices(long windowEnd)
Description copied from interface:SliceAssignerReturns an iterator of slices to expire when the given window is emitted. The window and slices are both identified by the end timestamp.- Specified by:
expiredSlicesin interfaceSliceAssigner- Parameters:
windowEnd- the end timestamp of window emitted.
-
getSliceEndInterval
public long getSliceEndInterval()
Description copied from interface:SliceAssignerReturns the interval of slice ends, i.e. the step size to advance of the slice end when a new slice assigned.- Specified by:
getSliceEndIntervalin interfaceSliceAssigner
-
getDescription
public String getDescription()
Description copied from interface:WindowAssignerReturns a description of this window assigner.- Specified by:
getDescriptionin interfaceWindowAssigner
-
-