Package lumis.portal.bigdata.query
Enum DateHistogramAggregation.Interval.Type
- java.lang.Object
-
- java.lang.Enum<DateHistogramAggregation.Interval.Type>
-
- lumis.portal.bigdata.query.DateHistogramAggregation.Interval.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<DateHistogramAggregation.Interval.Type>
- Enclosing class:
- DateHistogramAggregation.Interval
public static enum DateHistogramAggregation.Interval.Type extends Enum<DateHistogramAggregation.Interval.Type>
Interval type.- Since:
- 11.0.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static DateHistogramAggregation.Interval.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateHistogramAggregation.Interval.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECOND
public static final DateHistogramAggregation.Interval.Type SECOND
-
MINUTE
public static final DateHistogramAggregation.Interval.Type MINUTE
-
HOUR
public static final DateHistogramAggregation.Interval.Type HOUR
-
DAY
public static final DateHistogramAggregation.Interval.Type DAY
-
WEEK
public static final DateHistogramAggregation.Interval.Type WEEK
-
MONTH
public static final DateHistogramAggregation.Interval.Type MONTH
-
QUARTER
public static final DateHistogramAggregation.Interval.Type QUARTER
-
YEAR
public static final DateHistogramAggregation.Interval.Type YEAR
-
-
Method Detail
-
values
public static DateHistogramAggregation.Interval.Type[] 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 (DateHistogramAggregation.Interval.Type c : DateHistogramAggregation.Interval.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateHistogramAggregation.Interval.Type 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:
toString
in classEnum<DateHistogramAggregation.Interval.Type>
-
-