@StableMinor(version="12.3", sinceVersion="11.0") public class DateHistogramAggregation extends AbstractSubAggregationAwareAggregation
IDateHistogramAggregationResult
.Modifier and Type | Class and Description |
---|---|
static class |
DateHistogramAggregation.Interval
Date histogram interval.
|
Constructor and Description |
---|
DateHistogramAggregation(String id,
DocumentTypeField field)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
DocumentTypeField |
getField()
Returns the field this aggregation is bound to.
|
String |
getId()
Returns the aggregation identifier.
|
I |
getInterval()
Returns the interval.
|
B |
getLowerBound()
Returns the lowerBound.
|
I |
getOffset()
Returns the offset.
|
B |
getUpperBound()
Returns the upperBound.
|
void |
setExtendedBounds(B lowerBound,
B upperBound)
Sets the extended bounds.
lowerBound and upperBound must be both not null or both null. |
void |
setInterval(I interval)
Sets the interval.
|
void |
setOffset(I offset)
Sets the offset.
|
addSubAggregation, addSubAggregations, addSubAggregations, getSubAggregations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected final String id
public DateHistogramAggregation(String id, DocumentTypeField field)
id
- the aggregation identifier.field
- the field this aggregation will be performed on.public DocumentTypeField getField()
IFieldAwareAggregation
getField
in interface IFieldAwareAggregation
public I getInterval()
public void setInterval(I interval)
interval
- the interval value to set.public I getOffset()
public void setOffset(I offset)
offset
- the offset value to set.public void setExtendedBounds(B lowerBound, B upperBound)
lowerBound
and upperBound
must be both not null or both null.
When a histogram aggregation has a lower and upper bounds, the histogram will return buckets for the given limits, even if no documents
fill a given interval bucket.lowerBound
- the lower limit.upperBound
- the upper limit.public B getLowerBound()
public B getUpperBound()
public String getId()
IAggregation
getId
in interface IAggregation
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.