WindowAssigners listed
under org.apache.flink.streaming.api.windowing.assigners.@Deprecated public class BaseAlignedWindowAssigner extends WindowAssigner<Object,TimeWindow>
WindowAssigner used to instantiate one of the deprecated operators.WindowAssigner.WindowAssignerContext| Modifier | Constructor and Description |
|---|---|
protected |
BaseAlignedWindowAssigner(long size)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<TimeWindow> |
assignWindows(Object element,
long timestamp,
WindowAssigner.WindowAssignerContext context)
Deprecated.
Returns a
Collection of windows that should be assigned to the element. |
Trigger<Object,TimeWindow> |
getDefaultTrigger(StreamExecutionEnvironment env)
Deprecated.
Returns the default trigger associated with this
WindowAssigner. |
long |
getSize()
Deprecated.
|
org.apache.flink.api.common.typeutils.TypeSerializer<TimeWindow> |
getWindowSerializer(org.apache.flink.api.common.ExecutionConfig executionConfig)
Deprecated.
Returns a
TypeSerializer for serializing windows that are assigned by this WindowAssigner. |
boolean |
isEventTime()
Deprecated.
Returns
true if elements are assigned to windows based on event time, false
otherwise. |
protected BaseAlignedWindowAssigner(long size)
public long getSize()
public Collection<TimeWindow> assignWindows(Object element, long timestamp, WindowAssigner.WindowAssignerContext context)
WindowAssignerCollection of windows that should be assigned to the element.assignWindows in class WindowAssigner<Object,TimeWindow>element - The element to which windows should be assigned.timestamp - The timestamp of the element.context - The WindowAssigner.WindowAssignerContext in which the assigner operates.public Trigger<Object,TimeWindow> getDefaultTrigger(StreamExecutionEnvironment env)
WindowAssignerWindowAssigner.getDefaultTrigger in class WindowAssigner<Object,TimeWindow>public org.apache.flink.api.common.typeutils.TypeSerializer<TimeWindow> getWindowSerializer(org.apache.flink.api.common.ExecutionConfig executionConfig)
WindowAssignerTypeSerializer for serializing windows that are assigned by this WindowAssigner.getWindowSerializer in class WindowAssigner<Object,TimeWindow>public boolean isEventTime()
WindowAssignertrue if elements are assigned to windows based on event time, false
otherwise.isEventTime in class WindowAssigner<Object,TimeWindow>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.