com.simba.dsi.ext.aetree
Enum AggrFunctionID

java.lang.Object
  extended by java.lang.Enum<AggrFunctionID>
      extended by com.simba.dsi.ext.aetree.AggrFunctionID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AggrFunctionID>

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

An enumeration class that defines a list of aggregate functions.


Enum Constant Summary
AVG
          Aggregate function AVG.
COUNT
          Aggregate function COUNT.
COUNT_STAR
          Aggregate function COUNT(*).
INVALID
          Invalid aggregate function ID.
MAX
          Aggregate function MAX.
MIN
          Aggregate function MIN.
STDDEV
          Aggregate function STDDEV.
STDDEV_POP
          Aggregate function STDDEV_POP.
SUM
          Aggregate function SUM.
VAR
          Aggregate function VAR.
VAR_POP
          Aggregate function VAR_POP.
 
Method Summary
static AggrFunctionID getID(int identifier)
          It maps a native aggregate function ID (defined in C++) to an object of this class.
static AggrFunctionID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AggrFunctionID[] 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

AVG

public static final AggrFunctionID AVG
Aggregate function AVG.


COUNT

public static final AggrFunctionID COUNT
Aggregate function COUNT.


COUNT_STAR

public static final AggrFunctionID COUNT_STAR
Aggregate function COUNT(*).


MAX

public static final AggrFunctionID MAX
Aggregate function MAX.


MIN

public static final AggrFunctionID MIN
Aggregate function MIN.


STDDEV

public static final AggrFunctionID STDDEV
Aggregate function STDDEV.


STDDEV_POP

public static final AggrFunctionID STDDEV_POP
Aggregate function STDDEV_POP.


SUM

public static final AggrFunctionID SUM
Aggregate function SUM.


VAR

public static final AggrFunctionID VAR
Aggregate function VAR.


VAR_POP

public static final AggrFunctionID VAR_POP
Aggregate function VAR_POP.


INVALID

public static final AggrFunctionID INVALID
Invalid aggregate function ID. Mainly for initialization purpose.

Method Detail

values

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

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

valueOf

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

getID

public static final AggrFunctionID getID(int identifier)
It maps a native aggregate function ID (defined in C++) to an object of this class.

Parameters:
identifier - The native ID defined in the C++ SEAggrFunctionID enum. The ordinals of the AggrFunctionID enum in Java are all equal to those in C++.
Returns:
A corresponding object of this class.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.