public abstract class AbstractPipelineAggregationBuilder<PAB extends AbstractPipelineAggregationBuilder<PAB>> extends PipelineAggregationBuilder
PipelineAggregationBuilder.Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ParseField |
BUCKETS_PATH_FIELD
Field shared by many parsers.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
metaData |
protected java.lang.String |
type |
bucketsPaths, nameEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPipelineAggregationBuilder(StreamInput in,
java.lang.String type)
Read from a stream.
|
protected |
AbstractPipelineAggregationBuilder(java.lang.String name,
java.lang.String type,
java.lang.String[] bucketsPaths) |
| Modifier and Type | Method and Description |
|---|---|
PipelineAggregator |
create()
Creates the pipeline aggregator
|
protected abstract PipelineAggregator |
createInternal(java.util.Map<java.lang.String,java.lang.Object> metaData) |
protected abstract boolean |
doEquals(java.lang.Object obj) |
protected abstract int |
doHashCode() |
void |
doValidate(AggregatorFactory<?> parent,
AggregatorFactory<?>[] factories,
java.util.List<PipelineAggregationBuilder> pipelineAggregatorFactories) |
protected abstract void |
doWriteTo(StreamOutput out) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
protected abstract XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
protected boolean |
overrideBucketsPath() |
PAB |
setMetaData(java.util.Map<java.lang.String,java.lang.Object> metaData)
Associate metadata with this
PipelineAggregationBuilder. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
type() |
void |
validate(AggregatorFactory<?> parent,
AggregatorFactory<?>[] factories,
java.util.List<PipelineAggregationBuilder> pipelineAggregatorFactories)
Validates the state of this factory (makes sure the factory is properly
configured)
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getBucketsPaths, getNamebuildAsBytes, buildAsBytes, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetWriteableNamepublic static final ParseField BUCKETS_PATH_FIELD
protected final java.lang.String type
protected java.util.Map<java.lang.String,java.lang.Object> metaData
protected AbstractPipelineAggregationBuilder(java.lang.String name,
java.lang.String type,
java.lang.String[] bucketsPaths)
protected AbstractPipelineAggregationBuilder(StreamInput in, java.lang.String type) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionprotected abstract void doWriteTo(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String type()
public final void validate(AggregatorFactory<?> parent, AggregatorFactory<?>[] factories, java.util.List<PipelineAggregationBuilder> pipelineAggregatorFactories)
validate in class PipelineAggregationBuilderprotected abstract PipelineAggregator createInternal(java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOExceptionpublic final PipelineAggregator create() throws java.io.IOException
create in class PipelineAggregationBuilderjava.io.IOExceptionpublic void doValidate(AggregatorFactory<?> parent, AggregatorFactory<?>[] factories, java.util.List<PipelineAggregationBuilder> pipelineAggregatorFactories)
public PAB setMetaData(java.util.Map<java.lang.String,java.lang.Object> metaData)
PipelineAggregationBuilderPipelineAggregationBuilder.setMetaData in class PipelineAggregationBuilderpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionprotected boolean overrideBucketsPath()
true if the AbstractPipelineAggregationBuilder
overrides the XContent rendering of the bucketPath option.protected abstract XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectprotected abstract int doHashCode()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected abstract boolean doEquals(java.lang.Object obj)