public class BucketScriptPipelineAggregatorBuilder extends PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
bucketsPaths, metaData, name, type
EMPTY_PARAMS
Constructor and Description |
---|
BucketScriptPipelineAggregatorBuilder(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> bucketsPathsMap,
Script script) |
BucketScriptPipelineAggregatorBuilder(java.lang.String name,
Script script,
java.lang.String... bucketsPaths) |
Modifier and Type | Method and Description |
---|---|
protected PipelineAggregator |
createInternal(java.util.Map<java.lang.String,java.lang.Object> metaData) |
protected boolean |
doEquals(java.lang.Object obj) |
protected int |
doHashCode() |
protected BucketScriptPipelineAggregatorBuilder |
doReadFrom(java.lang.String name,
java.lang.String[] bucketsPaths,
StreamInput in) |
protected void |
doWriteTo(StreamOutput out) |
java.lang.String |
format()
Gets the format to use on the output of this aggregation.
|
BucketScriptPipelineAggregatorBuilder |
format(java.lang.String format)
Sets the format to use on the output of this aggregation.
|
protected ValueFormatter |
formatter() |
BucketHelpers.GapPolicy |
gapPolicy()
Gets the gap policy to use for this aggregation.
|
BucketScriptPipelineAggregatorBuilder |
gapPolicy(BucketHelpers.GapPolicy gapPolicy)
Sets the gap policy to use for this aggregation.
|
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
protected boolean |
overrideBucketsPath() |
create, doValidate, equals, getBucketsPaths, getName, getWriteableName, hashCode, name, readFrom, setMetaData, toXContent, type, validate, writeTo
buildAsBytes, buildAsBytes, toString
public BucketScriptPipelineAggregatorBuilder(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> bucketsPathsMap, Script script)
public BucketScriptPipelineAggregatorBuilder(java.lang.String name, Script script, java.lang.String... bucketsPaths)
public BucketScriptPipelineAggregatorBuilder format(java.lang.String format)
public java.lang.String format()
protected ValueFormatter formatter()
public BucketScriptPipelineAggregatorBuilder gapPolicy(BucketHelpers.GapPolicy gapPolicy)
public BucketHelpers.GapPolicy gapPolicy()
protected PipelineAggregator createInternal(java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
createInternal
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
java.io.IOException
protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
java.io.IOException
protected boolean overrideBucketsPath()
overrideBucketsPath
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
true
if the PipelineAggregatorBuilder
overrides the XContent rendering of the bucketPath option.protected BucketScriptPipelineAggregatorBuilder doReadFrom(java.lang.String name, java.lang.String[] bucketsPaths, StreamInput in) throws java.io.IOException
doReadFrom
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
java.io.IOException
protected int doHashCode()
doHashCode
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>
protected boolean doEquals(java.lang.Object obj)
doEquals
in class PipelineAggregatorBuilder<BucketScriptPipelineAggregatorBuilder>