@PublicEvolving public enum WindowStagger extends Enum<WindowStagger>
WindowStagger
staggers offset in runtime for each window assignment.Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract long |
getStaggerOffset(long currentProcessingTime,
long size) |
static WindowStagger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WindowStagger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract long getStaggerOffset(long currentProcessingTime, long size)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.