Class DateHistogramGroupSource
java.lang.Object
org.elasticsearch.client.transform.transforms.pivot.SingleGroupSource
org.elasticsearch.client.transform.transforms.pivot.DateHistogramGroupSource
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class DateHistogramGroupSource extends SingleGroupSource implements org.elasticsearch.common.xcontent.ToXContentObject
A grouping via a date histogram aggregation referencing a timefield
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDateHistogramGroupSource.Builderstatic classDateHistogramGroupSource.CalendarIntervalstatic classDateHistogramGroupSource.FixedIntervalstatic interfaceDateHistogramGroupSource.IntervalInterval can be specified in 2 ways: fixed_interval fixed intervals like 1h, 1m, 1d calendar_interval calendar aware intervals like 1M, 1Y, ...Nested classes/interfaces inherited from class org.elasticsearch.client.transform.transforms.pivot.SingleGroupSource
SingleGroupSource.Type -
Field Summary
Fields inherited from class org.elasticsearch.client.transform.transforms.pivot.SingleGroupSource
field, FIELD, script, SCRIPT -
Method Summary
Modifier and Type Method Description static DateHistogramGroupSource.Builderbuilder()booleanequals(java.lang.Object other)static DateHistogramGroupSourcefromXContent(org.elasticsearch.common.xcontent.XContentParser parser)DateHistogramGroupSource.IntervalgetInterval()java.time.ZoneIdgetTimeZone()SingleGroupSource.TypegetType()inthashCode()java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class org.elasticsearch.client.transform.transforms.pivot.SingleGroupSource
getField, getScript, innerXContent
-
Method Details
-
fromXContent
public static DateHistogramGroupSource fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
getType
- Specified by:
getTypein classSingleGroupSource
-
getInterval
-
getTimeZone
public java.time.ZoneId getTimeZone() -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classSingleGroupSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classSingleGroupSource
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
builder
-