Class InternalSampler
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,Aggregation,Sampler,SingleBucketAggregation,HasAggregations
- Direct Known Subclasses:
UnmappedSampler
public class InternalSampler extends InternalSingleBucketAggregation implements Sampler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContextNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.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 Modifier and Type Field Description static java.lang.StringNAMEstatic java.lang.StringPARSER_NAMEFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Constructor Summary
Constructors Constructor Description InternalSampler(StreamInput in)Read from a stream. -
Method Summary
Modifier and Type Method Description java.lang.StringgetType()java.lang.StringgetWriteableName()Returns the name of the writeable objectprotected InternalSingleBucketAggregationnewAggregation(java.lang.String name, long docCount, InternalAggregations subAggregations)Create a new empty sub aggregation.Methods inherited from class org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation
create, doWriteTo, doXContentBody, equals, getAggregations, getDocCount, getProperty, hashCode, reduce, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, isMapped, pipelineAggregators, 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, getNameMethods inherited from interface org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation
getAggregations, getDocCount
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
PARSER_NAME
public static final java.lang.String PARSER_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
InternalSampler
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
getWriteableName
public java.lang.String getWriteableName()Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getType
public java.lang.String getType()- Specified by:
getTypein interfaceAggregation- Overrides:
getTypein classInternalAggregation- Returns:
- a string representing the type of the aggregation. This type is added to the aggregation name in the response, so that it can later be used by clients to determine type of the aggregation and parse it into the proper object.
-
newAggregation
protected InternalSingleBucketAggregation newAggregation(java.lang.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
-