Class UnmappedSampler
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler
org.elasticsearch.search.aggregations.bucket.sampler.UnmappedSampler
- All Implemented Interfaces:
NamedWriteable
,Writeable
,Aggregation
,Sampler
,SingleBucketAggregation
,HasAggregations
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilder
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
Nested 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.bucket.sampler.InternalSampler
PARSER_NAME
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, name
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.xcontent.XContentBuilder
doXContentBody
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Returns the name of the writeable objectboolean
isMapped()
Return true if this aggregation is mapped, and can lead a reduction.reduce
(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext) Reduces the given aggregations to a single one and returns it.Methods inherited from class org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler
getType, newAggregation
Methods inherited from class org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
copyWithRewritenBuckets, create, doWriteTo, equals, forEachBucket, getAggregations, getDocCount, getProperty, hashCode, mustReduceOnSingleInternalAgg, reducePipelines, sortValue, sortValue
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetadata, getName, getProperty, readSize, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName
Methods inherited from interface org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation
getAggregations, getDocCount
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
UnmappedSampler
Read from a stream.- Throws:
IOException
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
- Overrides:
getWriteableName
in classInternalSampler
-
reduce
public InternalAggregation reduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext) Description copied from class:InternalAggregation
Reduces the given aggregations to a single one and returns it. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation). For best efficiency, when implementing, try reusing an existing instance (typically the first in the given list) to save on redundant object construction.- Overrides:
reduce
in classInternalSingleBucketAggregation
- See Also:
-
isMapped
public boolean isMapped()Description copied from class:InternalAggregation
Return true if this aggregation is mapped, and can lead a reduction. If this agg returns false, it should return itself if asked to lead a reduction- Overrides:
isMapped
in classInternalAggregation
-
doXContentBody
public org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Overrides:
doXContentBody
in classInternalSingleBucketAggregation
- Throws:
IOException
-