com.espertech.esper.view
Enum ViewFieldEnum

java.lang.Object
  extended by java.lang.Enum<ViewFieldEnum>
      extended by com.espertech.esper.view.ViewFieldEnum
All Implemented Interfaces:
Serializable, Comparable<ViewFieldEnum>

public enum ViewFieldEnum
extends Enum<ViewFieldEnum>

Enumerates the valid values for each view's public fields. The name of the field or property can be used to obtain values from the view rather than using the hardcoded String value for the field.


Enum Constant Summary
CORRELATION__CORRELATION
          Correlation.
MULTIDIM_OLAP__CUBE
          Cube.
REGRESSION__SLOPE
          Slope.
REGRESSION__YINTERCEPT
          Y-intercept.
SIZE_VIEW__SIZE
          Size.
UNIVARIATE_STATISTICS__AVERAGE
          Average.
UNIVARIATE_STATISTICS__DATAPOINTS
          Count.
UNIVARIATE_STATISTICS__STDDEV
          Standard dev.
UNIVARIATE_STATISTICS__STDDEVPA
          Standard dev population.
UNIVARIATE_STATISTICS__TOTAL
          Sum.
UNIVARIATE_STATISTICS__VARIANCE
          Variance.
WEIGHTED_AVERAGE__AVERAGE
          Weighted average.
 
Field Summary
static String[] MULTIDIM_OLAP__MEASURES
          Measures in an OLAP cube.
 
Method Summary
 String getName()
          Returns the field name of fields that contain data within a view's posted objects.
static ViewFieldEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ViewFieldEnum[] 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

UNIVARIATE_STATISTICS__DATAPOINTS

public static final ViewFieldEnum UNIVARIATE_STATISTICS__DATAPOINTS
Count.


UNIVARIATE_STATISTICS__TOTAL

public static final ViewFieldEnum UNIVARIATE_STATISTICS__TOTAL
Sum.


UNIVARIATE_STATISTICS__AVERAGE

public static final ViewFieldEnum UNIVARIATE_STATISTICS__AVERAGE
Average.


UNIVARIATE_STATISTICS__STDDEVPA

public static final ViewFieldEnum UNIVARIATE_STATISTICS__STDDEVPA
Standard dev population.


UNIVARIATE_STATISTICS__STDDEV

public static final ViewFieldEnum UNIVARIATE_STATISTICS__STDDEV
Standard dev.


UNIVARIATE_STATISTICS__VARIANCE

public static final ViewFieldEnum UNIVARIATE_STATISTICS__VARIANCE
Variance.


WEIGHTED_AVERAGE__AVERAGE

public static final ViewFieldEnum WEIGHTED_AVERAGE__AVERAGE
Weighted average.


CORRELATION__CORRELATION

public static final ViewFieldEnum CORRELATION__CORRELATION
Correlation.


REGRESSION__SLOPE

public static final ViewFieldEnum REGRESSION__SLOPE
Slope.


REGRESSION__YINTERCEPT

public static final ViewFieldEnum REGRESSION__YINTERCEPT
Y-intercept.


SIZE_VIEW__SIZE

public static final ViewFieldEnum SIZE_VIEW__SIZE
Size.


MULTIDIM_OLAP__CUBE

public static final ViewFieldEnum MULTIDIM_OLAP__CUBE
Cube.

Field Detail

MULTIDIM_OLAP__MEASURES

public static final String[] MULTIDIM_OLAP__MEASURES
Measures in an OLAP cube.

Method Detail

values

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

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

valueOf

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

getName

public String getName()
Returns the field name of fields that contain data within a view's posted objects.

Returns:
field name for use with DataSchema to obtain values out of objects.

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