Interface Histogram
- All Superinterfaces:
Aggregation
,MultiBucketsAggregation
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- All Known Implementing Classes:
InternalAutoDateHistogram
,InternalDateHistogram
,InternalHistogram
,InternalVariableWidthHistogram
,ParsedAutoDateHistogram
,ParsedDateHistogram
,ParsedHistogram
,ParsedVariableWidthHistogram
public interface Histogram extends MultiBucketsAggregation
A
histogram
aggregation. Defines multiple buckets, each representing an interval in a histogram.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Histogram.Bucket
A bucket in the histogram where documents fall inNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
EXTENDED_BOUNDS_FIELD
static org.elasticsearch.common.ParseField
HARD_BOUNDS_FIELD
static org.elasticsearch.common.ParseField
INTERVAL_FIELD
static org.elasticsearch.common.ParseField
KEYED_FIELD
static org.elasticsearch.common.ParseField
MIN_DOC_COUNT_FIELD
static org.elasticsearch.common.ParseField
OFFSET_FIELD
static org.elasticsearch.common.ParseField
ORDER_FIELD
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and Type Method Description java.util.List<? extends Histogram.Bucket>
getBuckets()
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
INTERVAL_FIELD
static final org.elasticsearch.common.ParseField INTERVAL_FIELD -
OFFSET_FIELD
static final org.elasticsearch.common.ParseField OFFSET_FIELD -
ORDER_FIELD
static final org.elasticsearch.common.ParseField ORDER_FIELD -
KEYED_FIELD
static final org.elasticsearch.common.ParseField KEYED_FIELD -
MIN_DOC_COUNT_FIELD
static final org.elasticsearch.common.ParseField MIN_DOC_COUNT_FIELD -
EXTENDED_BOUNDS_FIELD
static final org.elasticsearch.common.ParseField EXTENDED_BOUNDS_FIELD -
HARD_BOUNDS_FIELD
static final org.elasticsearch.common.ParseField HARD_BOUNDS_FIELD
-
-
Method Details
-
getBuckets
java.util.List<? extends Histogram.Bucket> getBuckets()- Specified by:
getBuckets
in interfaceMultiBucketsAggregation
- Returns:
- The buckets of this histogram (each bucket representing an interval in the histogram)
-