public static class SignificantStringTerms.Bucket extends InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
InternalSignificantTerms.Bucket.Reader<B extends InternalSignificantTerms.Bucket<B>>
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Writer<V>
aggregations
EMPTY_PARAMS
Constructor and Description |
---|
Bucket(org.apache.lucene.util.BytesRef term,
long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations,
DocValueFormat format) |
Bucket(org.apache.lucene.util.BytesRef term,
long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations,
double score,
DocValueFormat format) |
Bucket(StreamInput in,
long subsetSize,
long supersetSize,
DocValueFormat format)
Read from a stream.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey() |
java.lang.Number |
getKeyAsNumber() |
java.lang.String |
getKeyAsString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getAggregations, getDocCount, getSignificanceScore, getSubsetDf, getSubsetSize, getSupersetDf, getSupersetSize, reduce, updateScore
getProperty
public Bucket(org.apache.lucene.util.BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format)
public Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws java.io.IOException
java.io.IOException
public Bucket(org.apache.lucene.util.BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, double score, DocValueFormat format)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
public java.lang.Number getKeyAsNumber()
public java.lang.String getKeyAsString()
public java.lang.String getKey()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException