public class BucketScriptPipelineAggregator extends PipelineAggregator
| Modifier and Type | Class and Description |
|---|---|
static class |
BucketScriptPipelineAggregator.Factory |
PipelineAggregator.Parser| Modifier and Type | Field and Description |
|---|---|
static PipelineAggregatorStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
AGGREGATION_TRANFORM_FUNCTION| Constructor and Description |
|---|
BucketScriptPipelineAggregator() |
BucketScriptPipelineAggregator(String name,
Map<String,String> bucketsPathsMap,
Script script,
ValueFormatter formatter,
BucketHelpers.GapPolicy gapPolicy,
Map<String,Object> metadata) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doReadFrom(StreamInput in) |
protected void |
doWriteTo(StreamOutput out) |
InternalAggregation |
reduce(InternalAggregation aggregation,
InternalAggregation.ReduceContext reduceContext) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
bucketsPaths, metaData, name, readFrom, writeTopublic static final InternalAggregation.Type TYPE
public static final PipelineAggregatorStreams.Stream STREAM
public BucketScriptPipelineAggregator()
public BucketScriptPipelineAggregator(String name, Map<String,String> bucketsPathsMap, Script script, ValueFormatter formatter, BucketHelpers.GapPolicy gapPolicy, Map<String,Object> metadata)
public static void registerStreams()
public InternalAggregation.Type type()
type in class PipelineAggregatorpublic InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext)
reduce in class PipelineAggregatorprotected void doWriteTo(StreamOutput out) throws IOException
doWriteTo in class PipelineAggregatorIOExceptionprotected void doReadFrom(StreamInput in) throws IOException
doReadFrom in class PipelineAggregatorIOExceptionCopyright © 2009–2016. All rights reserved.