public enum TriggerResult extends Enum<TriggerResult>
If a Trigger returns FIRE or FIRE_AND_PURGE but the window does not
contain any data the window function will not be invoked, i.e. no data will be produced for the
window.
| 枚举常量和说明 |
|---|
CONTINUE
No action is taken on the window.
|
FIRE
On
FIRE, the window is evaluated and results are emitted. |
FIRE_AND_PURGE
FIRE_AND_PURGE evaluates the window function and emits the window
result. |
PURGE
All elements in the window are cleared and the window is discarded,
without evaluating the window function or emitting any elements.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isFire() |
boolean |
isPurge() |
static TriggerResult |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static TriggerResult[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TriggerResult CONTINUE
public static final TriggerResult FIRE_AND_PURGE
FIRE_AND_PURGE evaluates the window function and emits the window
result.public static final TriggerResult FIRE
FIRE, the window is evaluated and results are emitted.
The window is not purged, though, all elements are retained.public static final TriggerResult PURGE
public static TriggerResult[] values()
for (TriggerResult c : TriggerResult.values()) System.out.println(c);
public static TriggerResult valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean isFire()
public boolean isPurge()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.