This project has retired. For details please refer to its Attic page.
MetricDatum.Field (Apache Gora 0.2 API)

org.apache.gora.tutorial.log.generated
Enum MetricDatum.Field

java.lang.Object
  extended by java.lang.Enum<MetricDatum.Field>
      extended by org.apache.gora.tutorial.log.generated.MetricDatum.Field
All Implemented Interfaces:
Serializable, Comparable<MetricDatum.Field>
Enclosing class:
MetricDatum

public static enum MetricDatum.Field
extends Enum<MetricDatum.Field>


Enum Constant Summary
METRIC
           
METRIC_DIMENSION
           
TIMESTAMP
           
 
Method Summary
 int getIndex()
           
 String getName()
           
 String toString()
           
static MetricDatum.Field valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MetricDatum.Field[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

METRIC_DIMENSION

public static final MetricDatum.Field METRIC_DIMENSION

TIMESTAMP

public static final MetricDatum.Field TIMESTAMP

METRIC

public static final MetricDatum.Field METRIC
Method Detail

values

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

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

valueOf

public static MetricDatum.Field 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
NullPointerException - if the argument is null

getIndex

public int getIndex()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Enum<MetricDatum.Field>


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.