com.espertech.esper.client.soda
Enum OutputLimitSelector

java.lang.Object
  extended by java.lang.Enum<OutputLimitSelector>
      extended by com.espertech.esper.client.soda.OutputLimitSelector
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OutputLimitSelector>

public enum OutputLimitSelector
extends java.lang.Enum<OutputLimitSelector>

Selector for use in output rate limiting.


Enum Constant Summary
ALL
          Output all events of last interval.
DEFAULT
          Output all events of last interval.
FIRST
          Output first event of last interval.
LAST
          Output last event of last interval.
SNAPSHOT
          Output all events as a snapshot considering the current state regardless of interval.
 
Method Summary
 java.lang.String getText()
          Returns the text for the selector.
static OutputLimitSelector valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OutputLimitSelector[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FIRST

public static final OutputLimitSelector FIRST
Output first event of last interval.


LAST

public static final OutputLimitSelector LAST
Output last event of last interval.


ALL

public static final OutputLimitSelector ALL
Output all events of last interval. For group-by statements, output all groups regardless whether the group changed between the last output.


DEFAULT

public static final OutputLimitSelector DEFAULT
Output all events of last interval.


SNAPSHOT

public static final OutputLimitSelector SNAPSHOT
Output all events as a snapshot considering the current state regardless of interval.

Method Detail

values

public static OutputLimitSelector[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OutputLimitSelector c : OutputLimitSelector.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OutputLimitSelector valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getText

public java.lang.String getText()
Returns the text for the selector.

Returns:
text

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com