org.elasticsearch.hadoop.mr
Enum Counter
java.lang.Object
java.lang.Enum<Counter>
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.
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. |
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
ALL
public static final Set<Counter> ALL
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)