Enum Class Counter

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

public enum Counter extends Enum<Counter>
Enum used for representing the stats inside Hadoop.
  • Enum Constant Details

    • BYTES_SENT

      public static final Counter BYTES_SENT
    • DOCS_SENT

      public static final Counter DOCS_SENT
    • 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
    • BYTES_RECEIVED

      public static final Counter BYTES_RECEIVED
    • DOCS_RECEIVED

      public static final Counter DOCS_RECEIVED
    • BULK_TOTAL

      public static final Counter BULK_TOTAL
    • BULK_RETRIES

      public static final Counter BULK_RETRIES
    • 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_TOTAL

      public static final Counter SCROLL_TOTAL
    • SCROLL_TOTAL_TIME_MS

      public static final Counter SCROLL_TOTAL_TIME_MS
  • Field Details

  • Method Details

    • values

      public static Counter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Counter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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)