public static class DateHistogramAggregation.Interval extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DateHistogramAggregation.Interval.Type
Interval type.
|
Modifier and Type | Field and Description |
---|---|
static DateHistogramAggregation.Interval |
DAY
Interval of 1 day.
|
static DateHistogramAggregation.Interval |
HOUR
Interval of 1 hour.
|
static DateHistogramAggregation.Interval |
MINUTE
Interval of 1 minute.
|
static DateHistogramAggregation.Interval |
MONTH
Interval of 1 month.
|
static DateHistogramAggregation.Interval |
QUARTER
Interval of 1 quarter.
|
static DateHistogramAggregation.Interval |
SECOND
Interval of 1 second.
|
static DateHistogramAggregation.Interval |
WEEK
Interval of 1 week.
|
static DateHistogramAggregation.Interval |
YEAR
Interval of 1 year.
|
Modifier and Type | Method and Description |
---|---|
static DateHistogramAggregation.Interval |
custom(long amount,
DateHistogramAggregation.Interval.Type type)
Creates a new custom interval.
|
long |
getAmount()
Returns the amount.
|
DateHistogramAggregation.Interval.Type |
getType()
Returns the type.
|
String |
toString() |
public static final DateHistogramAggregation.Interval SECOND
public static final DateHistogramAggregation.Interval MINUTE
public static final DateHistogramAggregation.Interval HOUR
public static final DateHistogramAggregation.Interval DAY
public static final DateHistogramAggregation.Interval WEEK
public static final DateHistogramAggregation.Interval MONTH
public static final DateHistogramAggregation.Interval QUARTER
public static final DateHistogramAggregation.Interval YEAR
public long getAmount()
public DateHistogramAggregation.Interval.Type getType()
public static DateHistogramAggregation.Interval custom(long amount, DateHistogramAggregation.Interval.Type type)
amount
- type
- LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.