Class DateHistogramGroupSource
java.lang.Object
org.elasticsearch.client.transform.transforms.pivot.SingleGroupSource
org.elasticsearch.client.transform.transforms.pivot.DateHistogramGroupSource
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class DateHistogramGroupSource extends SingleGroupSource implements ToXContentObject
A grouping via a date histogram aggregation referencing a timefield
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateHistogramGroupSource.Builder
static class
DateHistogramGroupSource.CalendarInterval
static class
DateHistogramGroupSource.FixedInterval
static interface
DateHistogramGroupSource.Interval
Interval 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
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
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.Builder
builder()
boolean
equals(java.lang.Object other)
static DateHistogramGroupSource
fromXContent(XContentParser parser)
DateHistogramGroupSource.Interval
getInterval()
java.time.ZoneId
getTimeZone()
SingleGroupSource.Type
getType()
int
hashCode()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
Methods inherited from class org.elasticsearch.client.transform.transforms.pivot.SingleGroupSource
getField, getScript, innerXContent
-
Method Details
-
fromXContent
-
getType
- Specified by:
getType
in classSingleGroupSource
-
getInterval
-
getTimeZone
public java.time.ZoneId getTimeZone() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equals
in classSingleGroupSource
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSingleGroupSource
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
builder
-