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:
java.io.Serializable, java.lang.Comparable<SelectClauseStreamSelectorEnum>

public enum SelectClauseStreamSelectorEnum
extends java.lang.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
 boolean isSelectsIStream()
           
 boolean isSelectsRStream()
           
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(java.lang.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 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

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 SelectClauseStreamSelectorEnum[] 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 (SelectClauseStreamSelectorEnum c : SelectClauseStreamSelectorEnum.values())
    System.out.println(c);

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

valueOf

public static SelectClauseStreamSelectorEnum 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

isSelectsRStream

public boolean isSelectsRStream()

isSelectsIStream

public boolean isSelectsIStream()

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

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