Module org.elasticsearch.server
Class InternalMappedSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<A,B>
org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms<A,B>
org.elasticsearch.search.aggregations.bucket.terms.InternalMappedSignificantTerms<A,B>
- All Implemented Interfaces:
Iterable<SignificantTerms.Bucket>,NamedWriteable,Writeable,Aggregation,MultiBucketsAggregation,SignificantTerms,ToXContent,ToXContentFragment
- Direct Known Subclasses:
SignificantLongTerms,SignificantStringTerms
public abstract class InternalMappedSignificantTerms<A extends InternalMappedSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>
extends InternalSignificantTerms<A,B>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms
InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>>Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
InternalMultiBucketAggregation.BucketAggregationList<B extends MultiBucketsAggregation.Bucket>, InternalMultiBucketAggregation.InternalBucket, InternalMultiBucketAggregation.InternalBucketWritableNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DocValueFormatprotected final SignificanceHeuristicprotected final longprotected final longFields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms
BG_COUNT, minDocCount, requiredSize, SCOREFields inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
REPORT_EMPTY_EVERYFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInternalMappedSignificantTerms(String name, int requiredSize, long minDocCount, Map<String, Object> metadata, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, List<B> buckets) protectedInternalMappedSignificantTerms(StreamInput in, InternalSignificantTerms.Bucket.Reader<B> bucketReader) -
Method Summary
Modifier and TypeMethodDescriptiondoXContentBody(XContentBuilder builder, ToXContent.Params params) booleangetBucketByKey(String term) Get the bucket for the given term, or null if there is no such bucket.longlonginthashCode()iterator()protected final voidMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms
create, createBucketsArray, doWriteTo, finalizeSampling, getLeaderReducerMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, create, createBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, getMetadata, getName, getProperty, getReducer, getType, readSize, sortValue, sortValue, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getTypeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
format
-
subsetSize
protected final long subsetSize -
supersetSize
protected final long supersetSize -
significanceHeuristic
-
buckets
-
bucketMap
-
-
Constructor Details
-
InternalMappedSignificantTerms
protected InternalMappedSignificantTerms(String name, int requiredSize, long minDocCount, Map<String, Object> metadata, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, List<B> buckets) -
InternalMappedSignificantTerms
protected InternalMappedSignificantTerms(StreamInput in, InternalSignificantTerms.Bucket.Reader<B> bucketReader) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTermTypeInfoTo
- Specified by:
writeTermTypeInfoToin classInternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>, B extends InternalSignificantTerms.Bucket<B>> - Throws:
IOException
-
iterator
-
getBuckets
- Specified by:
getBucketsin interfaceMultiBucketsAggregation- Specified by:
getBucketsin interfaceSignificantTerms- Specified by:
getBucketsin classInternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>, B extends InternalSignificantTerms.Bucket<B>> - Returns:
- The buckets of this aggregation.
-
getBucketByKey
Description copied from interface:SignificantTermsGet the bucket for the given term, or null if there is no such bucket. -
getSubsetSize
public long getSubsetSize()- Returns:
- The numbers of docs in the subset (also known as "foreground set"). This number is equal to the document count of the containing aggregation.
-
getSupersetSize
public long getSupersetSize()- Returns:
- The numbers of docs in the superset (ordinarily the background count of the containing aggregation).
-
getSignificanceHeuristic
- Specified by:
getSignificanceHeuristicin classInternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>, B extends InternalSignificantTerms.Bucket<B>>
-
equals
- Overrides:
equalsin classInternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>, B extends InternalSignificantTerms.Bucket<B>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalSignificantTerms<A extends InternalMappedSignificantTerms<A,B>, B extends InternalSignificantTerms.Bucket<B>>
-
doXContentBody
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
doXContentBodyin classInternalAggregation- Throws:
IOException
-