NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, BaseAggregationBuilder
public class BucketScriptPipelineAggregationBuilder extends AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
BUCKETS_PATH_FIELD, metaData, type
bucketsPaths, name
EMPTY_PARAMS
Constructor | Description |
---|---|
BucketScriptPipelineAggregationBuilder(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> bucketsPathsMap,
Script script) |
|
BucketScriptPipelineAggregationBuilder(java.lang.String name,
Script script,
java.lang.String... bucketsPaths) |
|
BucketScriptPipelineAggregationBuilder(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | 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 void |
doWriteTo(StreamOutput out) |
|
java.lang.String |
format() |
Gets the format to use on the output of this aggregation.
|
BucketScriptPipelineAggregationBuilder |
format(java.lang.String format) |
Sets the format to use on the output of this aggregation.
|
protected DocValueFormat |
formatter() |
|
BucketHelpers.GapPolicy |
gapPolicy() |
Gets the gap policy to use for this aggregation.
|
BucketScriptPipelineAggregationBuilder |
gapPolicy(BucketHelpers.GapPolicy gapPolicy) |
Sets the gap policy to use for this aggregation.
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
|
protected boolean |
overrideBucketsPath() |
|
static BucketScriptPipelineAggregationBuilder |
parse(java.lang.String reducerName,
XContentParser parser) |
create, doValidate, equals, getType, hashCode, setMetaData, toXContent, type, validate, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBucketsPaths, getName, subAggregations, toString
isFragment
public static final java.lang.String NAME
public BucketScriptPipelineAggregationBuilder(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> bucketsPathsMap, Script script)
public BucketScriptPipelineAggregationBuilder(java.lang.String name, Script script, java.lang.String... bucketsPaths)
public BucketScriptPipelineAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
java.io.IOException
public BucketScriptPipelineAggregationBuilder format(java.lang.String format)
public java.lang.String format()
protected DocValueFormat formatter()
public BucketScriptPipelineAggregationBuilder 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 AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
java.io.IOException
protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent
in class AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
java.io.IOException
public static BucketScriptPipelineAggregationBuilder parse(java.lang.String reducerName, XContentParser parser) throws java.io.IOException
java.io.IOException
protected boolean overrideBucketsPath()
overrideBucketsPath
in class AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
true
if the AbstractPipelineAggregationBuilder
overrides the XContent rendering of the bucketPath option.protected int doHashCode()
doHashCode
in class AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
protected boolean doEquals(java.lang.Object obj)
doEquals
in class AbstractPipelineAggregationBuilder<BucketScriptPipelineAggregationBuilder>
public java.lang.String getWriteableName()
NamedWriteable