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 |
---|---|
java.lang.String |
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, 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 java.lang.Number getKeyAsNumber()
public java.lang.String getKeyAsString()
public java.lang.String getKey()
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