Class ParsedLongRareTerms.ParsedBucket
java.lang.Object
org.opensearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
org.opensearch.search.aggregations.bucket.terms.ParsedRareTerms.ParsedBucket
org.opensearch.search.aggregations.bucket.terms.ParsedLongRareTerms.ParsedBucket
- All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent
,MultiBucketsAggregation.Bucket
,RareTerms.Bucket
,HasAggregations
- Enclosing class:
ParsedLongRareTerms
Parsed bucket for rare long values
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
protected org.opensearch.core.xcontent.XContentBuilder
keyToXContent
(org.opensearch.core.xcontent.XContentBuilder builder) Methods inherited from class org.opensearch.search.aggregations.bucket.terms.ParsedRareTerms.ParsedBucket
toXContent
Methods inherited from class org.opensearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
getAggregations, getDocCount, isKeyed, parseXContent, setAggregations, setDocCount, setKeyAsString, setKeyed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket
getAggregations, getDocCount
Methods inherited from interface org.opensearch.core.xcontent.ToXContent
isFragment
-
Constructor Details
-
ParsedBucket
public ParsedBucket()
-
-
Method Details
-
getKey
- Returns:
- The key associated with the bucket
-
getKeyAsString
- Specified by:
getKeyAsString
in interfaceMultiBucketsAggregation.Bucket
- Overrides:
getKeyAsString
in classParsedMultiBucketAggregation.ParsedBucket
- Returns:
- The key associated with the bucket as a string
-
getKeyAsNumber
-
keyToXContent
protected org.opensearch.core.xcontent.XContentBuilder keyToXContent(org.opensearch.core.xcontent.XContentBuilder builder) throws IOException - Overrides:
keyToXContent
in classParsedMultiBucketAggregation.ParsedBucket
- Throws:
IOException
-