public static class StringTerms.Bucket extends InternalTerms.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
aggregations, docCount, docCountError, showDocCountError
EMPTY_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, reduce
getProperty
public 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.Bucket
public String getKeyAsString()
public void readFrom(StreamInput in) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.