public static enum Trigger.TriggerResult extends Enum<Trigger.TriggerResult>
On FIRE the pane is evaluated and results are emitted. The contents of the window
are kept. FIRE_AND_PURGE acts like FIRE but the contents of the pane
are purged. On CONTINUE nothing happens, processing continues. On PURGE
the contents of the window are discarded and now result is emitted for the window.
| Enum Constant and Description |
|---|
CONTINUE |
FIRE |
FIRE_AND_PURGE |
PURGE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFire() |
boolean |
isPurge() |
static Trigger.TriggerResult |
merge(Trigger.TriggerResult a,
Trigger.TriggerResult b)
Merges two
TriggerResults. |
static Trigger.TriggerResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Trigger.TriggerResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Trigger.TriggerResult CONTINUE
public static final Trigger.TriggerResult FIRE_AND_PURGE
public static final Trigger.TriggerResult FIRE
public static final Trigger.TriggerResult PURGE
public static Trigger.TriggerResult[] values()
for (Trigger.TriggerResult c : Trigger.TriggerResult.values()) System.out.println(c);
public static Trigger.TriggerResult 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 boolean isFire()
public boolean isPurge()
public static Trigger.TriggerResult merge(Trigger.TriggerResult a, Trigger.TriggerResult b)
TriggerResults. This specifies what should happen if we have
two results from a Trigger, for example as a result from
Trigger.onElement(Object, long, Window, TriggerContext) and
Trigger.onEventTime(long, Window, TriggerContext).
For example, if one result says CONTINUE while the other says FIRE
then FIRE is the combined result;
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.