public abstract class PipelineAggregator extends Object implements Streamable
Modifier and Type | Class and Description |
---|---|
static interface |
PipelineAggregator.Parser
Parses the pipeline aggregation request and creates the appropriate
pipeline aggregator factory for it.
|
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<Aggregation,InternalAggregation> |
AGGREGATION_TRANFORM_FUNCTION |
Modifier | Constructor and Description |
---|---|
protected |
PipelineAggregator() |
protected |
PipelineAggregator(String name,
String[] bucketsPaths,
Map<String,Object> metaData) |
Modifier and Type | Method and Description |
---|---|
String[] |
bucketsPaths() |
protected abstract void |
doReadFrom(StreamInput in) |
protected abstract void |
doWriteTo(StreamOutput out) |
Map<String,Object> |
metaData() |
String |
name() |
void |
readFrom(StreamInput in) |
abstract InternalAggregation |
reduce(InternalAggregation aggregation,
InternalAggregation.ReduceContext reduceContext) |
abstract InternalAggregation.Type |
type() |
void |
writeTo(StreamOutput out) |
public static final com.google.common.base.Function<Aggregation,InternalAggregation> AGGREGATION_TRANFORM_FUNCTION
public String name()
public String[] bucketsPaths()
public abstract InternalAggregation.Type type()
public abstract InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext)
public final void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
protected abstract void doWriteTo(StreamOutput out) throws IOException
IOException
public final void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
protected abstract void doReadFrom(StreamInput in) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.