com.espertech.esper.epl.spec
Enum SelectClauseStreamSelectorEnum

java.lang.Object
  extended by java.lang.Enum<SelectClauseStreamSelectorEnum>
      extended by com.espertech.esper.epl.spec.SelectClauseStreamSelectorEnum
All Implemented Interfaces:
Serializable, Comparable<SelectClauseStreamSelectorEnum>

public enum SelectClauseStreamSelectorEnum
extends Enum<SelectClauseStreamSelectorEnum>

Enumeration for representing select-clause selection of the remove stream or the insert stream, or both.


Enum Constant Summary
ISTREAM_ONLY
          Indicates selection of the insert stream only.
RSTREAM_ISTREAM_BOTH
          Indicates selection of both the insert and the remove stream.
RSTREAM_ONLY
          Indicates selection of the remove stream only.
 
Method Summary
static StreamSelector mapFromSODA(SelectClauseStreamSelectorEnum selector)
          Maps the internal stream selector to the SODA-representation
static SelectClauseStreamSelectorEnum mapFromSODA(StreamSelector selector)
          Maps the SODA-selector to the internal representation
static SelectClauseStreamSelectorEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SelectClauseStreamSelectorEnum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RSTREAM_ONLY

public static final SelectClauseStreamSelectorEnum RSTREAM_ONLY
Indicates selection of the remove stream only.


ISTREAM_ONLY

public static final SelectClauseStreamSelectorEnum ISTREAM_ONLY
Indicates selection of the insert stream only.


RSTREAM_ISTREAM_BOTH

public static final SelectClauseStreamSelectorEnum RSTREAM_ISTREAM_BOTH
Indicates selection of both the insert and the remove stream.

Method Detail

values

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

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

valueOf

public static SelectClauseStreamSelectorEnum valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

mapFromSODA

public static SelectClauseStreamSelectorEnum mapFromSODA(StreamSelector selector)
Maps the SODA-selector to the internal representation

Parameters:
selector - is the SODA-selector to map
Returns:
internal stream selector

mapFromSODA

public static StreamSelector mapFromSODA(SelectClauseStreamSelectorEnum selector)
Maps the internal stream selector to the SODA-representation

Parameters:
selector - is the internal selector to map
Returns:
SODA stream selector

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com