com.bigdata.counters.query
Enum TimestampFormatEnum

java.lang.Object
  extended by java.lang.Enum<TimestampFormatEnum>
      extended by com.bigdata.counters.query.TimestampFormatEnum
All Implemented Interfaces:
Serializable, Comparable<TimestampFormatEnum>

public enum TimestampFormatEnum
extends Enum<TimestampFormatEnum>

Type-safe enum for the options used to render the timestamp of the row in a history or correlated history.

Version:
$Id: TimestampFormatEnum.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Enum Constant Summary
dateTime
           
epoch
          Report the timestamp of the counter value in milliseconds since the epoch (localtime).
 
Method Summary
static TimestampFormatEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimestampFormatEnum[] 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

dateTime

public static final TimestampFormatEnum dateTime

epoch

public static final TimestampFormatEnum epoch
Report the timestamp of the counter value in milliseconds since the epoch (localtime).

Method Detail

values

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

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

valueOf

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


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.