Module org.elasticsearch.xcore
Class DateHistogramGroupConfig.CalendarInterval
java.lang.Object
org.elasticsearch.xpack.core.rollup.job.DateHistogramGroupConfig
org.elasticsearch.xpack.core.rollup.job.DateHistogramGroupConfig.CalendarInterval
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
DateHistogramGroupConfig
CalendarInterval is a
DateHistogramGroupConfig that uses calendar-aware intervals for rolling up data.
Calendar time intervals understand leap corrections and contextual differences in certain calendar units (e.g.
months are variable length depending on the month). Calendar units are only available in singular quantities:
1s, 1m, 1h, 1d, 1w, 1q, 1M, 1y
For fixed time rollups, use DateHistogramGroupConfig.FixedInterval-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.rollup.job.DateHistogramGroupConfig
DateHistogramGroupConfig.CalendarInterval, DateHistogramGroupConfig.FixedIntervalNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.xpack.core.rollup.job.DateHistogramGroupConfig
CALENDAR_INTERVAL, DEFAULT_ZONEID_TIMEZONE, DELAY, FIXED_INTERVAL, INTERVAL, TIME_ZONEFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionCalendarInterval(String field, DateHistogramInterval interval) CalendarInterval(String field, DateHistogramInterval interval, DateHistogramInterval delay, String timeZone) -
Method Summary
Methods inherited from class org.elasticsearch.xpack.core.rollup.job.DateHistogramGroupConfig
createRounding, equals, fromXContent, getDelay, getField, getInterval, getTimeZone, hashCode, toString, toXContent, validateMappings, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
CalendarInterval
-
CalendarInterval
public CalendarInterval(String field, DateHistogramInterval interval, DateHistogramInterval delay, String timeZone)
-
-
Method Details
-
getIntervalTypeName
- Overrides:
getIntervalTypeNamein classDateHistogramGroupConfig
-