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 |
---|
Bucket(org.apache.lucene.util.BytesRef term,
long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
DocValueFormat format) |
Bucket(DocValueFormat format,
boolean showDocCountError) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKey() |
java.lang.Number |
getKeyAsNumber() |
java.lang.String |
getKeyAsString() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getAggregations, getDocCount, getDocCountError, reduce
getProperty
public Bucket(DocValueFormat format, boolean showDocCountError)
public Bucket(org.apache.lucene.util.BytesRef term, long docCount, InternalAggregations aggregations, boolean showDocCountError, long docCountError, DocValueFormat format)
public java.lang.Object getKey()
public java.lang.Number getKeyAsNumber()
getKeyAsNumber
in class Terms.Bucket
public java.lang.String getKeyAsString()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException