@StableMinor(version="11.0", sinceVersion="11.0") public class HistogramAggregation extends Object
IHistogramAggregationResult
.Constructor and Description |
---|
HistogramAggregation(String id,
DocumentTypeField field)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubAggregation(IAggregation aggregation)
Adds the given sub-aggregation.
|
void |
addSubAggregations(IAggregation... aggregations)
Adds the given sub-aggregations.
|
void |
addSubAggregations(List<IAggregation> aggregations)
Adds the given sub-aggregations.
|
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.
|
List<IAggregation> |
getSubAggregations()
Returns an unmodifiable list of the sub-aggregations.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected final String id
public HistogramAggregation(String id, DocumentTypeField field)
id
- the aggregation identifier.field
- the field this histogram 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 void addSubAggregation(IAggregation aggregation)
ISubAggregationAwareAggregation
addSubAggregation
in interface ISubAggregationAwareAggregation
public List<IAggregation> getSubAggregations()
ISubAggregationAwareAggregation
getSubAggregations
in interface ISubAggregationAwareAggregation
public void addSubAggregations(IAggregation... aggregations)
ISubAggregationAwareAggregation
addSubAggregations
in interface ISubAggregationAwareAggregation
aggregations
- the sub-aggregations.public void addSubAggregations(List<IAggregation> aggregations)
ISubAggregationAwareAggregation
addSubAggregations
in interface ISubAggregationAwareAggregation
aggregations
- the sub-aggregations.public String getId()
IAggregation
getId
in interface IAggregation
Lumisportal 11.0.0.180924 - Copyright © 2006–2018 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.