public static class StringTerms.Bucket extends InternalTerms.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Paramsaggregations, docCount, docCountError, showDocCountErrorEMPTY_PARAMS| Constructor and Description |
|---|
StringTerms.Bucket(boolean showDocCountError) |
StringTerms.Bucket(org.apache.lucene.util.BytesRef term,
long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey() |
Number |
getKeyAsNumber() |
String |
getKeyAsString() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getAggregations, getDocCount, getDocCountError, reducegetPropertypublic StringTerms.Bucket(boolean showDocCountError)
public StringTerms.Bucket(org.apache.lucene.util.BytesRef term,
long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError)
public Object getKey()
public Number getKeyAsNumber()
getKeyAsNumber in class Terms.Bucketpublic String getKeyAsString()
public void readFrom(StreamInput in) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.