public static final class SliceAssigners.WindowedSliceAssigner extends Object implements SliceUnsharedAssigner
SliceAssigner for elements have been attached window start and end timestamps.| 构造器和说明 |
|---|
WindowedSliceAssigner(int windowEndIndex,
SliceAssigner innerAssigner) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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 在接口中 SliceAssignerelement - the element to which slice should belong to.clock - the service to get current processing time.public long getLastWindowEnd(long sliceEnd)
SliceAssignergetLastWindowEnd 在接口中 SliceAssignerpublic long getWindowStart(long windowEnd)
SliceAssignergetWindowStart 在接口中 SliceAssignerpublic Iterable<Long> expiredSlices(long windowEnd)
SliceAssignerexpiredSlices 在接口中 SliceAssignerwindowEnd - the end timestamp of window emitted.public long getSliceEndInterval()
SliceAssignergetSliceEndInterval 在接口中 SliceAssignerpublic boolean isEventTime()
SliceAssignertrue if elements are assigned to windows based on event time, false
based on processing time.isEventTime 在接口中 SliceAssignerCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.