elasticsearch-hadoop

org.elasticsearch.hadoop.mr
Enum Counter

java.lang.Object
  extended by java.lang.Enum<Counter>
      extended by org.elasticsearch.hadoop.mr.Counter
All Implemented Interfaces:
Serializable, Comparable<Counter>

public enum Counter
extends Enum<Counter>

Enum used for representing the stats inside Hadoop.


Enum Constant Summary
BULK_RETRIES
           
BULK_RETRIES_TOTAL_TIME_MS
           
BULK_TOTAL_TIME_MS
           
BULK_WRITES
           
BYTES_ACCEPTED
           
BYTES_READ
           
BYTES_RETRIED
           
BYTES_WRITTEN
           
DOCS_ACCEPTED
           
DOCS_READ
           
DOCS_RETRIED
           
DOCS_WRITTEN
           
NET_RETRIES
           
NET_TOTAL_TIME_MS
           
NODE_RETRIES
           
SCROLL_READS
           
SCROLL_TOTAL_TIME_MS
           
 
Field Summary
static Set<Counter> ALL
           
 
Method Summary
abstract  long get(org.elasticsearch.hadoop.rest.stats.Stats stats)
           
static Counter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Counter[] 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

BYTES_WRITTEN

public static final Counter BYTES_WRITTEN

DOCS_WRITTEN

public static final Counter DOCS_WRITTEN

BULK_WRITES

public static final Counter BULK_WRITES

BYTES_ACCEPTED

public static final Counter BYTES_ACCEPTED

DOCS_ACCEPTED

public static final Counter DOCS_ACCEPTED

DOCS_RETRIED

public static final Counter DOCS_RETRIED

BYTES_RETRIED

public static final Counter BYTES_RETRIED

BULK_RETRIES

public static final Counter BULK_RETRIES

BYTES_READ

public static final Counter BYTES_READ

DOCS_READ

public static final Counter DOCS_READ

NODE_RETRIES

public static final Counter NODE_RETRIES

NET_RETRIES

public static final Counter NET_RETRIES

NET_TOTAL_TIME_MS

public static final Counter NET_TOTAL_TIME_MS

BULK_TOTAL_TIME_MS

public static final Counter BULK_TOTAL_TIME_MS

BULK_RETRIES_TOTAL_TIME_MS

public static final Counter BULK_RETRIES_TOTAL_TIME_MS

SCROLL_READS

public static final Counter SCROLL_READS

SCROLL_TOTAL_TIME_MS

public static final Counter SCROLL_TOTAL_TIME_MS
Field Detail

ALL

public static final Set<Counter> ALL
Method Detail

values

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

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

valueOf

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

get

public abstract long get(org.elasticsearch.hadoop.rest.stats.Stats stats)

elasticsearch-hadoop