Module org.elasticsearch.server
Class InternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<A,B>
org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms<A,B>
- All Implemented Interfaces:
NamedWriteable,Writeable,Aggregation,MultiBucketsAggregation,RareTerms,ToXContent,ToXContentFragment
- Direct Known Subclasses:
InternalMappedRareTerms,UnmappedRareTerms
public abstract class InternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
extends InternalMultiBucketAggregation<A,B>
implements RareTerms
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInternalRareTerms.Bucket<B extends InternalRareTerms.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
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotectedInternalRareTerms(String name, BucketOrder order, long maxDocCount, Map<String, Object> metadata) protectedRead from a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AcreateWithFilter(String name, List<B> buckets, SetBackedScalingCuckooFilter filter) protected final voiddoWriteTo(StreamOutput out) protected static XContentBuilderdoXContentCommon(XContentBuilder builder, ToXContent.Params params, List<? extends InternalRareTerms.Bucket<?>> buckets) booleanReturn the sorted list of the buckets in this terms aggregation.inthashCode()protected abstract voidMethods 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, doXContentBody, finalizeSampling, getLeaderReducer, 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 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
-
order
-
maxDocCount
protected final long maxDocCount
-
-
Constructor Details
-
InternalRareTerms
protected InternalRareTerms(String name, BucketOrder order, long maxDocCount, Map<String, Object> metadata) -
InternalRareTerms
Read from a stream.- Throws:
IOException
-
-
Method Details
-
doWriteTo
- Specified by:
doWriteToin classInternalAggregation- Throws:
IOException
-
writeTermTypeInfoTo
- Throws:
IOException
-
getBuckets
Description copied from interface:RareTermsReturn the sorted list of the buckets in this terms aggregation.- Specified by:
getBucketsin interfaceMultiBucketsAggregation- Specified by:
getBucketsin interfaceRareTerms- Specified by:
getBucketsin classInternalMultiBucketAggregation<A extends InternalRareTerms<A,B>, B extends InternalRareTerms.Bucket<B>> - Returns:
- The buckets of this aggregation.
-
createWithFilter
protected abstract A createWithFilter(String name, List<B> buckets, SetBackedScalingCuckooFilter filter) -
equals
- Overrides:
equalsin classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalAggregation
-
doXContentCommon
protected static XContentBuilder doXContentCommon(XContentBuilder builder, ToXContent.Params params, List<? extends InternalRareTerms.Bucket<?>> buckets) throws IOException - Throws:
IOException
-