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() |
protected XContentBuilder |
keyToXContent(XContentBuilder builder) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getAggregations, getDocCount, getSignificanceScore, getSubsetDf, getSubsetSize, getSupersetDf, getSupersetSize, reduce, toXContent
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
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()
protected XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
keyToXContent
in class InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
java.io.IOException