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 Summary
Enum ConstantDescriptionThe number of second+ generation merges.The minimum memory level (in bytes) observed in operation.Was: peak value for totalSizeInMemory But operator already provides this value.The maximum number of batches kept in memory.The number of times operator spilled to disk.The number of MB of data spilled to disk. -
Method Summary
Modifier and TypeMethodDescriptionint
metricId()
static ExternalSortBatch.Metric
Returns the enum constant of this type with the specified name.static ExternalSortBatch.Metric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPILL_COUNT
The number of times operator spilled to disk. -
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
The maximum number of batches kept in memory. -
MERGE_COUNT
The number of second+ generation merges. -
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
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
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
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 nameNullPointerException
- if the argument is null
-
metricId
public int metricId()
-