Module org.elasticsearch.server
Class InternalFilter
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
org.elasticsearch.search.aggregations.bucket.filter.InternalFilter
- All Implemented Interfaces:
NamedWriteable,Writeable,Aggregation,Filter,SingleBucketAggregation,HasAggregations,ToXContent,ToXContentFragment
-
Nested Class Summary
Nested 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
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinalizeSampling(SamplingContext samplingContext) Called by the parent sampling context.Returns the name of the writeable objectprotected InternalSingleBucketAggregationnewAggregation(String name, long docCount, InternalAggregations subAggregations) Create a new empty sub aggregation.Methods inherited from class org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
copyWithRewritenBuckets, create, doWriteTo, doXContentBody, equals, forEachBucket, getAggregations, getDocCount, getLeaderReducer, getProperty, hashCode, mustReduceOnSingleInternalAgg, reducePipelines, sortValue, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, getMetadata, getName, getProperty, getReducer, getType, readSize, 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.search.aggregations.bucket.SingleBucketAggregation
getAggregations, getDocCountMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
InternalFilter
Stream from a stream.- Throws:
IOException
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
newAggregation
protected InternalSingleBucketAggregation newAggregation(String name, long docCount, InternalAggregations subAggregations) Description copied from class:InternalSingleBucketAggregationCreate a new empty sub aggregation. This must be a new instance on each call.- Specified by:
newAggregationin classInternalSingleBucketAggregation
-
finalizeSampling
Description copied from class:InternalAggregationCalled by the parent sampling context. Should only ever be called once as some aggregations scale their internal values- Overrides:
finalizeSamplingin classInternalAggregation- Parameters:
samplingContext- the current sampling context- Returns:
- new aggregation with the sampling context applied, could be the same aggregation instance if nothing needs to be done
-