public class DateHistogramParser extends HistogramParser
AbstractValuesSourceParser.AnyValuesSourceParser, AbstractValuesSourceParser.BytesValuesSourceParser, AbstractValuesSourceParser.GeoPointValuesSourceParser, AbstractValuesSourceParser.NumericValuesSourceParser
Constructor and Description |
---|
DateHistogramParser() |
Modifier and Type | Method and Description |
---|---|
protected DateHistogramAggregatorBuilder |
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. |
protected java.lang.Object |
parseStringInterval(java.lang.String text) |
protected long |
parseStringOffset(java.lang.String offset) |
token
parse
protected java.lang.Object parseStringInterval(java.lang.String text)
parseStringInterval
in class HistogramParser
protected DateHistogramAggregatorBuilder 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 HistogramParser
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)
methodprotected long parseStringOffset(java.lang.String offset) throws java.io.IOException
parseStringOffset
in class HistogramParser
java.io.IOException