public static class SignificantStringTerms.Bucket extends InternalSignificantTerms.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
aggregations
EMPTY_PARAMS
Constructor and Description |
---|
Bucket(org.apache.lucene.util.BytesRef term,
long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations) |
Bucket(org.apache.lucene.util.BytesRef term,
long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations,
double score) |
Bucket(long subsetSize,
long supersetSize) |
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
Number |
getKeyAsNumber() |
String |
getKeyAsString() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getAggregations, getDocCount, getSignificanceScore, getSubsetDf, getSubsetSize, getSupersetDf, getSupersetSize, reduce, updateScore
getProperty
public Bucket(long subsetSize, long supersetSize)
public Bucket(org.apache.lucene.util.BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations)
public Bucket(org.apache.lucene.util.BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, double score)
public Number getKeyAsNumber()
public String getKeyAsString()
public String getKey()
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–2016. All rights reserved.