public enum DruidType extends Enum<DruidType>
| Enum Constant and Description |
|---|
COMPLEX |
DOUBLE |
FLOAT |
HYPER_UNIQUE |
LONG |
STRING |
THETA_SKETCH |
| Modifier and Type | Field and Description |
|---|---|
SqlTypeName |
sqlType
The corresponding SQL type.
|
| Modifier and Type | Method and Description |
|---|---|
protected static DruidType |
getTypeFromMetaData(String type)
Returns a DruidType matching the String from a meta data query
|
protected static DruidType |
getTypeFromMetric(String type)
Returns a DruidType matching the given String type from a Druid metric
|
boolean |
isComplex()
Returns true if and only if this enum should be used inside of a
ComplexMetric |
static DruidType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DruidType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DruidType LONG
public static final DruidType FLOAT
public static final DruidType DOUBLE
public static final DruidType STRING
public static final DruidType COMPLEX
public static final DruidType HYPER_UNIQUE
public static final DruidType THETA_SKETCH
public final SqlTypeName sqlType
public static DruidType[] values()
for (DruidType c : DruidType.values()) System.out.println(c);
public static DruidType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isComplex()
ComplexMetricprotected static DruidType getTypeFromMetric(String type)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.