public class AggregatorFactories
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AggregatorFactories.AggParseContext
Context to parse and aggregation.
|
static class |
AggregatorFactories.Builder |
Modifier and Type | Field and Description |
---|---|
static AggregatorFactories |
EMPTY |
static java.util.regex.Pattern |
VALID_AGG_NAME |
Modifier and Type | Method and Description |
---|---|
static AggregatorFactories.Builder |
builder() |
int |
countAggregators() |
int |
countPipelineAggregators() |
java.util.List<PipelineAggregator> |
createPipelineAggregators() |
Aggregator[] |
createSubAggregators(Aggregator parent)
Create all aggregators so that they can be consumed with multiple
buckets.
|
Aggregator[] |
createTopLevelAggregators() |
static AggregatorFactories.Builder |
parseAggregators(QueryParseContext parseContext)
Parses the aggregation request recursively generating aggregator factories in turn.
|
void |
validate() |
public static final java.util.regex.Pattern VALID_AGG_NAME
public static final AggregatorFactories EMPTY
public static AggregatorFactories.Builder parseAggregators(QueryParseContext parseContext) throws java.io.IOException
parseContext
- The parse context.java.io.IOException
- When parsing fails for unknown reasons.public static AggregatorFactories.Builder builder()
public java.util.List<PipelineAggregator> createPipelineAggregators() throws java.io.IOException
java.io.IOException
public Aggregator[] createSubAggregators(Aggregator parent) throws java.io.IOException
java.io.IOException
public Aggregator[] createTopLevelAggregators() throws java.io.IOException
java.io.IOException
public int countAggregators()
public int countPipelineAggregators()
public void validate()