public class DateRangeParser extends RangeParser
AbstractValuesSourceParser.AnyValuesSourceParser, AbstractValuesSourceParser.BytesValuesSourceParser, AbstractValuesSourceParser.GeoPointValuesSourceParser, AbstractValuesSourceParser.NumericValuesSourceParser
Constructor and Description |
---|
DateRangeParser() |
Modifier and Type | Method and Description |
---|---|
protected DateRangeAggregatorBuilder |
createFactory(java.lang.String aggregationName,
ValuesSourceType valuesSourceType,
ValueType targetValueType,
java.util.Map<ParseField,java.lang.Object> otherOptions)
Creates a
ValuesSourceAggregatorBuilder from the information
gathered by the subclass. |
DateRangeAggregatorBuilder |
getFactoryPrototypes() |
java.lang.String |
type() |
parseRange, token
parse
public java.lang.String type()
type
in interface Aggregator.Parser
type
in class RangeParser
protected DateRangeAggregatorBuilder createFactory(java.lang.String aggregationName, ValuesSourceType valuesSourceType, ValueType targetValueType, java.util.Map<ParseField,java.lang.Object> otherOptions)
AbstractValuesSourceParser
ValuesSourceAggregatorBuilder
from the information
gathered by the subclass. Options parsed in
AbstractValuesSourceParser
itself will be added to the factory
after it has been returned by this method.createFactory
in class RangeParser
aggregationName
- the name of the aggregationvaluesSourceType
- the type of the ValuesSource
targetValueType
- the target type of the final value output by the aggregationotherOptions
- a Map
containing the extra options parsed by the
AbstractValuesSourceParser.token(String, String, org.elasticsearch.common.xcontent.XContentParser.Token,
XContentParser, ParseFieldMatcher, Map)
methodpublic DateRangeAggregatorBuilder getFactoryPrototypes()
getFactoryPrototypes
in interface Aggregator.Parser
getFactoryPrototypes
in class RangeParser
AggregatorBuilder
instance for this parser
that can be used for deserialization