public static final class SliceAssigners.WindowedSliceAssigner extends Object implements SliceUnsharedAssigner
SliceAssigner for elements have been attached window start and end timestamps.| Constructor and Description |
|---|
WindowedSliceAssigner(int windowEndIndex,
SliceAssigner innerAssigner) |
| Modifier and Type | Method and Description |
|---|---|
long |
assignSliceEnd(org.apache.flink.table.data.RowData element,
ClockService clock)
Returns the end timestamp of a slice that the given element should belong.
|
Iterable<Long> |
expiredSlices(long windowEnd)
Returns an iterator of slices to expire when the given window is emitted.
|
String |
getDescription()
Returns a description of this window assigner.
|
long |
getLastWindowEnd(long sliceEnd)
Returns the last window which the slice belongs to.
|
long |
getSliceEndInterval()
Returns the interval of slice ends, i.e. the step size to advance of the slice end when a new
slice assigned.
|
long |
getWindowStart(long windowEnd)
Returns the corresponding window start timestamp of the given window end timestamp.
|
boolean |
isEventTime()
Returns
true if elements are assigned to windows based on event time, false
based on processing time. |
public WindowedSliceAssigner(int windowEndIndex,
SliceAssigner innerAssigner)
public long assignSliceEnd(org.apache.flink.table.data.RowData element,
ClockService clock)
SliceAssignerassignSliceEnd in interface SliceAssignerelement - the element to which slice should belong to.clock - the service to get current processing time.public long getLastWindowEnd(long sliceEnd)
SliceAssignergetLastWindowEnd in interface SliceAssignerpublic long getWindowStart(long windowEnd)
SliceAssignergetWindowStart in interface SliceAssignerpublic Iterable<Long> expiredSlices(long windowEnd)
SliceAssignerexpiredSlices in interface SliceAssignerwindowEnd - the end timestamp of window emitted.public long getSliceEndInterval()
SliceAssignergetSliceEndInterval in interface SliceAssignerpublic boolean isEventTime()
WindowAssignertrue if elements are assigned to windows based on event time, false
based on processing time.isEventTime in interface WindowAssignerpublic String getDescription()
WindowAssignergetDescription in interface WindowAssignerCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.