Class AbstractPipelineAggregationBuilder<PAB extends AbstractPipelineAggregationBuilder<PAB>>
java.lang.Object
org.elasticsearch.search.aggregations.PipelineAggregationBuilder
org.elasticsearch.search.aggregations.pipeline.AbstractPipelineAggregationBuilder<PAB>
- All Implemented Interfaces:
NamedWriteable
,Writeable
,Rewriteable<PipelineAggregationBuilder>
,BaseAggregationBuilder
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
- Direct Known Subclasses:
BucketMetricsPipelineAggregationBuilder
,BucketScriptPipelineAggregationBuilder
,BucketSelectorPipelineAggregationBuilder
,BucketSortPipelineAggregationBuilder
,CumulativeSumPipelineAggregationBuilder
,DerivativePipelineAggregationBuilder
,MovFnPipelineAggregationBuilder
,SerialDiffPipelineAggregationBuilder
public abstract class AbstractPipelineAggregationBuilder<PAB extends AbstractPipelineAggregationBuilder<PAB>>
extends PipelineAggregationBuilder
Base implementation of a
PipelineAggregationBuilder
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.PipelineAggregationBuilder
PipelineAggregationBuilder.ValidationContext
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
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
Field shared by many parsers.protected final String
Fields inherited from class org.elasticsearch.search.aggregations.PipelineAggregationBuilder
bucketsPaths, name
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPipelineAggregationBuilder
(String name, String type, String[] bucketsPaths) protected
Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionfinal PipelineAggregator
create()
Creates the pipeline aggregatorprotected abstract PipelineAggregator
createInternal
(Map<String, Object> metadata) protected abstract void
doWriteTo
(StreamOutput out) boolean
getType()
The name of the type of aggregation built by this builder.int
hashCode()
protected abstract org.elasticsearch.xcontent.XContentBuilder
internalXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) protected boolean
setMetadata
(Map<String, Object> metadata) Associate metadata with thisPipelineAggregationBuilder
.final org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) type()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.PipelineAggregationBuilder
getBucketsPaths, getName, rewrite, subAggregations, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
BUCKETS_PATH_FIELD
public static final org.elasticsearch.xcontent.ParseField BUCKETS_PATH_FIELDField shared by many parsers. -
type
-
metadata
-
-
Constructor Details
-
AbstractPipelineAggregationBuilder
-
AbstractPipelineAggregationBuilder
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
doWriteTo
- Throws:
IOException
-
type
-
createInternal
-
create
Creates the pipeline aggregator- Specified by:
create
in classPipelineAggregationBuilder
- Returns:
- The created aggregator
-
setMetadata
Description copied from class:PipelineAggregationBuilder
Associate metadata with thisPipelineAggregationBuilder
.- Specified by:
setMetadata
in interfaceBaseAggregationBuilder
- Specified by:
setMetadata
in classPipelineAggregationBuilder
-
toXContent
public final org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
overrideBucketsPath
protected boolean overrideBucketsPath()- Returns:
true
if theAbstractPipelineAggregationBuilder
overrides the XContent rendering of the bucketPath option.
-
internalXContent
protected abstract org.elasticsearch.xcontent.XContentBuilder internalXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
getType
Description copied from interface:BaseAggregationBuilder
The name of the type of aggregation built by this builder.
-