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, name
EMPTY_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) |
java.lang.String |
getType()
The name of the type of aggregation built by this builder.
|
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, getName, subAggregations
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getWriteableName
isFragment
public 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.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
protected abstract void doWriteTo(StreamOutput out) throws java.io.IOException
java.io.IOException
public java.lang.String type()
public final void validate(AggregatorFactory<?> parent, AggregatorFactory<?>[] factories, java.util.List<PipelineAggregationBuilder> pipelineAggregatorFactories)
validate
in class PipelineAggregationBuilder
protected abstract PipelineAggregator createInternal(java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
public final PipelineAggregator create() throws java.io.IOException
create
in class PipelineAggregationBuilder
java.io.IOException
public void doValidate(AggregatorFactory<?> parent, AggregatorFactory<?>[] factories, java.util.List<PipelineAggregationBuilder> pipelineAggregatorFactories)
public PAB setMetaData(java.util.Map<java.lang.String,java.lang.Object> metaData)
PipelineAggregationBuilder
PipelineAggregationBuilder
.setMetaData
in interface BaseAggregationBuilder
setMetaData
in class PipelineAggregationBuilder
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
protected 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.IOException
public int hashCode()
hashCode
in class java.lang.Object
protected abstract int doHashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected abstract boolean doEquals(java.lang.Object obj)
public java.lang.String getType()
BaseAggregationBuilder