Package org.apache.calcite.adapter.druid
Enum Granularities.AllGranularity
- java.lang.Object
-
- java.lang.Enum<Granularities.AllGranularity>
-
- org.apache.calcite.adapter.druid.Granularities.AllGranularity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Granularities.AllGranularity>
,DruidJson
,Granularity
- Enclosing class:
- Granularities
private static enum Granularities.AllGranularity extends java.lang.Enum<Granularities.AllGranularity> implements Granularity
Implementation ofGranularity
forGranularity.Type.ALL
. A singleton.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.adapter.druid.Granularity
Granularity.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
AllGranularity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Granularity.Type
getType()
static Granularities.AllGranularity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Granularities.AllGranularity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
write(com.fasterxml.jackson.core.JsonGenerator generator)
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Granularities.AllGranularity INSTANCE
-
-
Method Detail
-
values
public static Granularities.AllGranularity[] 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 (Granularities.AllGranularity c : Granularities.AllGranularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Granularities.AllGranularity valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
write
public void write(com.fasterxml.jackson.core.JsonGenerator generator) throws java.io.IOException
-
getType
@Nonnull public Granularity.Type getType()
- Specified by:
getType
in interfaceGranularity
-
-