Module org.elasticsearch.server
Class BucketSelectorPipelineAggregationBuilder
java.lang.Object
org.elasticsearch.search.aggregations.PipelineAggregationBuilder
org.elasticsearch.search.aggregations.pipeline.AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
org.elasticsearch.search.aggregations.pipeline.BucketSelectorPipelineAggregationBuilder
- All Implemented Interfaces:
- NamedWriteable,- VersionedNamedWriteable,- Writeable,- Rewriteable<PipelineAggregationBuilder>,- BaseAggregationBuilder,- ToXContent,- ToXContentFragment
public class BucketSelectorPipelineAggregationBuilder
extends AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.PipelineAggregationBuilderPipelineAggregationBuilder.ValidationContextNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsFields inherited from class org.elasticsearch.search.aggregations.pipeline.AbstractPipelineAggregationBuilderBUCKETS_PATH_FIELD, metadata, typeFields inherited from class org.elasticsearch.search.aggregations.PipelineAggregationBuilderbucketsPaths, nameFields inherited from interface org.elasticsearch.index.query.RewriteableMAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionBucketSelectorPipelineAggregationBuilder(String name, Map<String, String> bucketsPathsMap, Script script) BucketSelectorPipelineAggregationBuilder(String name, Script script, String... bucketsPaths) Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionprotected PipelineAggregatorcreateInternal(Map<String, Object> metadata) protected voiddoWriteTo(StreamOutput out) booleanGets the gap policy to use for this aggregation.gapPolicy(BucketHelpers.GapPolicy gapPolicy) Sets the gap policy to use for this aggregation.The minimal version of the recipient this object can be sent toReturns the name of the writeable objectinthashCode()protected XContentBuilderinternalXContent(XContentBuilder builder, ToXContent.Params params) protected booleanparse(String reducerName, XContentParser parser) protected voidMakes sure this builder is properly configured.Methods inherited from class org.elasticsearch.search.aggregations.pipeline.AbstractPipelineAggregationBuildercreate, getType, setMetadata, toXContent, type, writeToMethods inherited from class org.elasticsearch.search.aggregations.PipelineAggregationBuildergetBucketsPaths, getName, rewrite, subAggregations, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
BucketSelectorPipelineAggregationBuilder
- 
BucketSelectorPipelineAggregationBuilder
- 
BucketSelectorPipelineAggregationBuilderRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
doWriteTo- Specified by:
- doWriteToin class- AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
- Throws:
- IOException
 
- 
gapPolicySets the gap policy to use for this aggregation.
- 
gapPolicyGets the gap policy to use for this aggregation.
- 
createInternal- Specified by:
- createInternalin class- AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
 
- 
internalXContentprotected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- internalXContentin class- AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
- Throws:
- IOException
 
- 
parsepublic static BucketSelectorPipelineAggregationBuilder parse(String reducerName, XContentParser parser) throws IOException - Throws:
- IOException
 
- 
validateDescription copied from class:PipelineAggregationBuilderMakes sure this builder is properly configured.- Specified by:
- validatein class- PipelineAggregationBuilder
 
- 
overrideBucketsPathprotected boolean overrideBucketsPath()- Overrides:
- overrideBucketsPathin class- AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
- Returns:
- trueif the- AbstractPipelineAggregationBuilderoverrides the XContent rendering of the bucketPath option.
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
 
- 
equals- Overrides:
- equalsin class- AbstractPipelineAggregationBuilder<BucketSelectorPipelineAggregationBuilder>
 
- 
getWriteableNameDescription copied from interface:VersionedNamedWriteableReturns the name of the writeable object
- 
getMinimalSupportedVersionDescription copied from interface:VersionedNamedWriteableThe minimal version of the recipient this object can be sent to
 
-