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| 限定符 | 构造器和说明 |
|---|---|
protected |
BaseAlignedWindowAssigner(long size)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<TimeWindow> |
assignWindows(Object element,
long timestamp,
WindowAssigner.WindowAssignerContext context)
已过时。
Returns a
Collection of windows that should be assigned to the element. |
Trigger<Object,TimeWindow> |
getDefaultTrigger(StreamExecutionEnvironment env)
已过时。
Returns the default trigger associated with this
WindowAssigner. |
long |
getSize()
已过时。
|
org.apache.flink.api.common.typeutils.TypeSerializer<TimeWindow> |
getWindowSerializer(org.apache.flink.api.common.ExecutionConfig executionConfig)
已过时。
Returns a
TypeSerializer for serializing windows that are assigned by
this WindowAssigner. |
boolean |
isEventTime()
已过时。
Returns
true if elements are assigned to windows based on event time,
false otherwise. |
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 在类中 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 在类中 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 在类中 WindowAssigner<Object,TimeWindow>public boolean isEventTime()
WindowAssignertrue if elements are assigned to windows based on event time,
false otherwise.isEventTime 在类中 WindowAssigner<Object,TimeWindow>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.