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
,ToXContent
,ToXContentFragment
,Aggregation
,Sampler
,SingleBucketAggregation
,HasAggregations
public class UnmappedSampler extends InternalSampler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
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.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description UnmappedSampler(StreamInput in)
Read from a stream.
-
Method Summary
Modifier and Type Method Description InternalAggregation
doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
XContentBuilder
doXContentBody(XContentBuilder builder, ToXContent.Params params)
java.lang.String
getWriteableName()
Returns the name of the writeable objectboolean
isMapped()
Return true if this aggregation is mapped, and can lead a reduction.-
Methods inherited from class org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler
getType, newAggregation
-
Methods inherited from class org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
create, doEquals, doHashCode, doWriteTo, getAggregations, getDocCount, getProperty
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
equals, getMetaData, getName, getProperty, hashCode, pipelineAggregators, readSize, reduce, 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.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnmappedSampler
public UnmappedSampler(StreamInput in) throws java.io.IOException
Read from a stream.- Throws:
java.io.IOException
-
-
Method Detail
-
getWriteableName
public java.lang.String getWriteableName()
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
- Overrides:
getWriteableName
in classInternalSampler
-
doReduce
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
- Overrides:
doReduce
in classInternalSingleBucketAggregation
-
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 XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Overrides:
doXContentBody
in classInternalSingleBucketAggregation
- Throws:
java.io.IOException
-
-