Writeable, ToXContent, MultiBucketsAggregation.Bucket, SignificantTerms.Bucket, HasAggregationspublic static class SignificantStringTerms.Bucket extends InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
InternalSignificantTerms.Bucket.Reader<B extends InternalSignificantTerms.Bucket<B>>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Writer<V>aggregationsEMPTY_PARAMS| Constructor | Description |
|---|---|
Bucket(org.apache.lucene.util.BytesRef term,
long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations,
double score,
DocValueFormat format) |
|
Bucket(org.apache.lucene.util.BytesRef term,
long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations,
DocValueFormat format) |
|
Bucket(StreamInput in,
long subsetSize,
long supersetSize,
DocValueFormat format) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getKey() |
|
java.lang.Number |
getKeyAsNumber() |
|
java.lang.String |
getKeyAsString() |
|
int |
hashCode() |
|
protected XContentBuilder |
keyToXContent(XContentBuilder builder) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
getPropertygetAggregations, getDocCount, getSignificanceScore, getSubsetDf, getSubsetSize, getSupersetDf, getSupersetSize, reduce, toXContentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic 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.IOExceptionpublic 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
Writeablejava.io.IOExceptionpublic 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.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>public int hashCode()
hashCode in class InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>