public abstract class InternalMappedSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>> extends InternalSignificantTerms<A,B>
InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>>InternalMultiBucketAggregation.InternalBucketInternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,B> |
bucketMap |
protected java.util.List<B> |
buckets |
protected DocValueFormat |
format |
protected SignificanceHeuristic |
significanceHeuristic |
protected long |
subsetSize |
protected long |
supersetSize |
BG_COUNT, minDocCount, requiredSize, SCOREmetaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
InternalMappedSignificantTerms(StreamInput in,
InternalSignificantTerms.Bucket.Reader<B> bucketReader) |
protected |
InternalMappedSignificantTerms(java.lang.String name,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData,
DocValueFormat format,
long subsetSize,
long supersetSize,
SignificanceHeuristic significanceHeuristic,
java.util.List<B> buckets) |
| Modifier and Type | Method and Description |
|---|---|
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
B |
getBucketByKey(java.lang.String term)
Get the bucket for the given term, or null if there is no such bucket.
|
java.util.List<B> |
getBuckets() |
protected SignificanceHeuristic |
getSignificanceHeuristic() |
protected long |
getSubsetSize() |
protected long |
getSupersetSize() |
java.util.Iterator<SignificantTerms.Bucket> |
iterator() |
protected void |
writeTermTypeInfoTo(StreamOutput out) |
create, createBucketsArray, doReduce, doWriteTocreate, createBucket, getPropertygetMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getTypeisFragment, toXContentgetWriteableNameprotected final DocValueFormat format
protected final long subsetSize
protected final long supersetSize
protected final SignificanceHeuristic significanceHeuristic
protected final java.util.List<B extends InternalSignificantTerms.Bucket<B>> buckets
protected java.util.Map<java.lang.String,B extends InternalSignificantTerms.Bucket<B>> bucketMap
protected InternalMappedSignificantTerms(java.lang.String name,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData,
DocValueFormat format,
long subsetSize,
long supersetSize,
SignificanceHeuristic significanceHeuristic,
java.util.List<B> buckets)
protected InternalMappedSignificantTerms(StreamInput in, InternalSignificantTerms.Bucket.Reader<B> bucketReader) throws java.io.IOException
java.io.IOExceptionprotected final void writeTermTypeInfoTo(StreamOutput out) throws java.io.IOException
writeTermTypeInfoTo in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>java.io.IOExceptionpublic java.util.Iterator<SignificantTerms.Bucket> iterator()
public java.util.List<B> getBuckets()
getBuckets in interface MultiBucketsAggregationgetBuckets in interface SignificantTermsgetBuckets in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>public B getBucketByKey(java.lang.String term)
SignificantTermsprotected long getSubsetSize()
getSubsetSize in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>protected long getSupersetSize()
getSupersetSize in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>protected SignificanceHeuristic getSignificanceHeuristic()
getSignificanceHeuristic in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOException