@PublicEvolving public enum WindowStagger extends Enum<WindowStagger>
WindowStagger staggers offset in runtime for each window assignment.| 枚举常量和说明 |
|---|
ALIGNED
Default mode, all panes fire at the same time across all partitions.
|
NATURAL
When the first event is received in the window operator, take the difference between the
start of the window and current procesing time as the offset.
|
RANDOM
Stagger offset is sampled from uniform distribution U(0, WindowSize) when first event
ingested in the partitioned operator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract long |
getStaggerOffset(long currentProcessingTime,
long size) |
static WindowStagger |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static WindowStagger[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WindowStagger ALIGNED
public static final WindowStagger RANDOM
public static final WindowStagger NATURAL
public static WindowStagger[] values()
for (WindowStagger c : WindowStagger.values()) System.out.println(c);
public static WindowStagger valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public abstract long getStaggerOffset(long currentProcessingTime,
long size)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.