public class BucketSelectorParser extends java.lang.Object implements PipelineAggregator.Parser
Modifier and Type | Field and Description |
---|---|
static ParseField |
FORMAT |
static ParseField |
GAP_POLICY |
static ParseField |
PARAMS_FIELD |
BUCKETS_PATH
Constructor and Description |
---|
BucketSelectorParser() |
Modifier and Type | Method and Description |
---|---|
BucketSelectorPipelineAggregatorBuilder |
getFactoryPrototype() |
BucketSelectorPipelineAggregatorBuilder |
parse(java.lang.String reducerName,
XContentParser parser,
QueryParseContext context)
Returns the pipeline aggregator factory with which this parser is
associated.
|
java.lang.String |
type() |
public static final ParseField FORMAT
public static final ParseField GAP_POLICY
public static final ParseField PARAMS_FIELD
public java.lang.String type()
type
in interface PipelineAggregator.Parser
public BucketSelectorPipelineAggregatorBuilder parse(java.lang.String reducerName, XContentParser parser, QueryParseContext context) throws java.io.IOException
PipelineAggregator.Parser
parse
in interface PipelineAggregator.Parser
reducerName
- The name of the pipeline aggregationparser
- The xcontent parsercontext
- The search contextjava.io.IOException
- When parsing failspublic BucketSelectorPipelineAggregatorBuilder getFactoryPrototype()
getFactoryPrototype
in interface PipelineAggregator.Parser
PipelineAggregatorBuilder
instance for this
parser that can be used for deserialization