Enum ExternalSortBatch.Metric

java.lang.Object
java.lang.Enum<ExternalSortBatch.Metric>
org.apache.drill.exec.physical.impl.xsort.ExternalSortBatch.Metric
All Implemented Interfaces:
Serializable, Comparable<ExternalSortBatch.Metric>, MetricDef
Enclosing class:
ExternalSortBatch

public static enum ExternalSortBatch.Metric extends Enum<ExternalSortBatch.Metric> implements MetricDef
  • Enum Constant Details

    • SPILL_COUNT

      public static final ExternalSortBatch.Metric SPILL_COUNT
      The number of times operator spilled to disk.
    • NOT_USED

      public static final ExternalSortBatch.Metric NOT_USED
      Was: peak value for totalSizeInMemory But operator already provides this value. Cannot remove this value: doing so would throw off the numeric indexes in the query profile.
    • PEAK_BATCHES_IN_MEMORY

      public static final ExternalSortBatch.Metric PEAK_BATCHES_IN_MEMORY
      The maximum number of batches kept in memory.
    • MERGE_COUNT

      public static final ExternalSortBatch.Metric MERGE_COUNT
      The number of second+ generation merges.
    • MIN_BUFFER

      public static final ExternalSortBatch.Metric MIN_BUFFER
      The minimum memory level (in bytes) observed in operation. Not as interesting as it seems: this class aggressively manages memory to keep this number positive.
    • SPILL_MB

      public static final ExternalSortBatch.Metric SPILL_MB
      The number of MB of data spilled to disk. This amount is first written, then later re-read. So, disk I/O is twice this amount.
  • Method Details

    • values

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

      public static ExternalSortBatch.Metric 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
    • metricId

      public int metricId()
      Specified by:
      metricId in interface MetricDef