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.InternalBucket
InternalAggregation.ReduceContext
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.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, SCORE
metaData, name
TYPED_KEYS_DELIMITER
EMPTY_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, doWriteTo
create, createBucket, getProperty
getMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getType
isFragment, toXContent
getWriteableName
protected 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.IOException
protected 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.IOException
public java.util.Iterator<SignificantTerms.Bucket> iterator()
public java.util.List<B> getBuckets()
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface SignificantTerms
getBuckets
in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>
public B getBucketByKey(java.lang.String term)
SignificantTerms
protected 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 InternalAggregation
java.io.IOException