java.lang.Iterable<SignificantTerms.Bucket>, NamedWriteable, Writeable, ToXContent, ToXContentFragment, Aggregation, MultiBucketsAggregation, SignificantTermsSignificantLongTerms, SignificantStringTermspublic abstract class InternalMappedSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>> extends InternalSignificantTerms<A,B>
Aggregation.CommonFieldsInternalAggregation.ReduceContextInternalMultiBucketAggregation.InternalBucketInternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | 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 |
TYPED_KEYS_DELIMITERmetaData, nameBG_COUNT, minDocCount, requiredSize, SCOREEMPTY_PARAMS| Modifier | Constructor | Description |
|---|---|---|
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) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(java.lang.Object obj) |
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode() |
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
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) |
getMetaData, getName, getTypeequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTocountInnerBucket, countInnerBucket, create, createBucket, getPropertycreate, createBucketsArray, doReduce, doWriteTogetWriteableNameclone, finalize, getClass, notify, notifyAll, wait, wait, waittoXContentisFragmentprotected 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>>protected boolean doEquals(java.lang.Object obj)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>protected int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode 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