Enum SegmentMetadataQuery.AnalysisType
- java.lang.Object
-
- java.lang.Enum<SegmentMetadataQuery.AnalysisType>
-
- org.apache.druid.query.metadata.metadata.SegmentMetadataQuery.AnalysisType
-
- All Implemented Interfaces:
Serializable,Comparable<SegmentMetadataQuery.AnalysisType>,Cacheable
- Enclosing class:
- SegmentMetadataQuery
public static enum SegmentMetadataQuery.AnalysisType extends Enum<SegmentMetadataQuery.AnalysisType> implements Cacheable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATORSCARDINALITYINTERVALMINMAXQUERYGRANULARITYROLLUPSIZETIMESTAMPSPEC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SegmentMetadataQuery.AnalysisTypefromString(String name)byte[]getCacheKey()Get a byte array used as a cache key.StringtoString()static SegmentMetadataQuery.AnalysisTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SegmentMetadataQuery.AnalysisType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CARDINALITY
public static final SegmentMetadataQuery.AnalysisType CARDINALITY
-
SIZE
public static final SegmentMetadataQuery.AnalysisType SIZE
-
INTERVAL
public static final SegmentMetadataQuery.AnalysisType INTERVAL
-
AGGREGATORS
public static final SegmentMetadataQuery.AnalysisType AGGREGATORS
-
MINMAX
public static final SegmentMetadataQuery.AnalysisType MINMAX
-
TIMESTAMPSPEC
public static final SegmentMetadataQuery.AnalysisType TIMESTAMPSPEC
-
QUERYGRANULARITY
public static final SegmentMetadataQuery.AnalysisType QUERYGRANULARITY
-
ROLLUP
public static final SegmentMetadataQuery.AnalysisType ROLLUP
-
-
Method Detail
-
values
public static SegmentMetadataQuery.AnalysisType[] 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 (SegmentMetadataQuery.AnalysisType c : SegmentMetadataQuery.AnalysisType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentMetadataQuery.AnalysisType 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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<SegmentMetadataQuery.AnalysisType>
-
fromString
public static SegmentMetadataQuery.AnalysisType fromString(String name)
-
getCacheKey
public byte[] getCacheKey()
Description copied from interface:CacheableGet a byte array used as a cache key.- Specified by:
getCacheKeyin interfaceCacheable- Returns:
- a cache key
-
-