Package lumis.portal.bigdata.query
Class DateHistogramAggregation
- java.lang.Object
-
- lumis.portal.bigdata.query.AbstractSubAggregationAwareAggregation
-
- lumis.portal.bigdata.query.DateHistogramAggregation
-
- All Implemented Interfaces:
IAggregation
,IFieldAwareAggregation
,IMultiBucketAggregation
,ISubAggregationAwareAggregation
@StableMinor(version="14.0", sinceVersion="11.0") public class DateHistogramAggregation extends AbstractSubAggregationAwareAggregation
Date histogram aggregation. Produces buckets for each interval in histogram. This aggregation produces anIDateHistogramAggregationResult
.- Since:
- 11.0.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateHistogramAggregation.Interval
Date histogram interval.
-
Constructor Summary
Constructors Constructor Description DateHistogramAggregation(String id, DocumentTypeField field)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
andupperBound
must be both not null or both null.void
setInterval(I interval)
Sets the interval.void
setOffset(I offset)
Sets the offset.-
Methods inherited from class lumis.portal.bigdata.query.AbstractSubAggregationAwareAggregation
addSubAggregation, addSubAggregations, addSubAggregations, getSubAggregations
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.bigdata.query.IAggregation
getId
-
-
-
-
Field Detail
-
id
protected final String id
-
-
Constructor Detail
-
DateHistogramAggregation
public DateHistogramAggregation(String id, DocumentTypeField field)
Creates a new instance.- Parameters:
id
- the aggregation identifier.field
- the field this aggregation will be performed on.- Since:
- 11.0.0
-
-
Method Detail
-
getField
public DocumentTypeField getField()
Description copied from interface:IFieldAwareAggregation
Returns the field this aggregation is bound to.- Specified by:
getField
in interfaceIFieldAwareAggregation
- Returns:
- the field this aggregation is bound to.
-
getInterval
public I getInterval()
Returns the interval.- Returns:
- the interval
- Since:
- 11.0.0
-
setInterval
public void setInterval(I interval)
Sets the interval.- Parameters:
interval
- the interval value to set.- Since:
- 11.0.0
-
getOffset
public I getOffset()
Returns the offset.- Returns:
- the offset
- Since:
- 11.0.0
-
setOffset
public void setOffset(I offset)
Sets the offset.- Parameters:
offset
- the offset value to set.- Since:
- 11.0.0
-
setExtendedBounds
public void setExtendedBounds(B lowerBound, B upperBound)
Sets the extended bounds.
lowerBound
andupperBound
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.- Parameters:
lowerBound
- the lower limit.upperBound
- the upper limit.- Since:
- 11.0.0
-
getLowerBound
public B getLowerBound()
Returns the lowerBound.- Returns:
- the lowerBound
- Since:
- 11.0.0
-
getUpperBound
public B getUpperBound()
Returns the upperBound.- Returns:
- the upperBound
- Since:
- 11.0.0
-
getId
public String getId()
Description copied from interface:IAggregation
Returns the aggregation identifier.- Specified by:
getId
in interfaceIAggregation
- Returns:
- the aggregation identifier.
-
-