ToXContent
, ToXContentFragment
, Aggregation
, MultiBucketsAggregation
, Range
ParsedDateRange
, ParsedGeoDistance
public class ParsedRange extends ParsedMultiBucketAggregation<ParsedRange.ParsedBucket> implements Range
Modifier and Type | Class | Description |
---|---|---|
static class |
ParsedRange.ParsedBucket |
Aggregation.CommonFields
Range.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPED_KEYS_DELIMITER
metadata
buckets, keyed
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedRange() |
Modifier and Type | Method | Description |
---|---|---|
protected static void |
declareParsedRangeFields(ObjectParser<? extends ParsedRange,java.lang.Void> objectParser,
CheckedFunction<XContentParser,ParsedRange.ParsedBucket,java.io.IOException> bucketParser,
CheckedFunction<XContentParser,ParsedRange.ParsedBucket,java.io.IOException> keyedBucketParser) |
|
static ParsedRange |
fromXContent(XContentParser parser,
java.lang.String name) |
|
java.util.List<? extends Range.Bucket> |
getBuckets() |
Return the buckets of this range aggregation.
|
java.lang.String |
getType() |
getMetaData, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
declareMultiBucketAggregationFields, doXContentBody
toXContent
isFragment
public java.lang.String getType()
getType
in interface Aggregation
public java.util.List<? extends Range.Bucket> getBuckets()
Range
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface Range
protected static void declareParsedRangeFields(ObjectParser<? extends ParsedRange,java.lang.Void> objectParser, CheckedFunction<XContentParser,ParsedRange.ParsedBucket,java.io.IOException> bucketParser, CheckedFunction<XContentParser,ParsedRange.ParsedBucket,java.io.IOException> keyedBucketParser)
public static ParsedRange fromXContent(XContentParser parser, java.lang.String name) throws java.io.IOException
java.io.IOException