Module org.elasticsearch.xcore
Class DateHistogramGroupSource
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.pivot.SingleGroupSource
org.elasticsearch.xpack.core.transform.transforms.pivot.DateHistogramGroupSource
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceInterval 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.xpack.core.transform.transforms.pivot.SingleGroupSource
SingleGroupSource.TypeNested 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.transform.transforms.pivot.SingleGroupSource
field, FIELD, MISSING_BUCKET, missingBucket, SCRIPT, scriptConfigFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDateHistogramGroupSource(String field, ScriptConfig scriptConfig, boolean missingBucket, DateHistogramGroupSource.Interval interval, ZoneId timeZone, Long offset) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DateHistogramGroupSourcefromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) longgetType()inthashCode()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.transform.transforms.pivot.SingleGroupSource
getField, getMappingType, getMissingBucket, getScriptConfig, innerXContent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
DateHistogramGroupSource
public DateHistogramGroupSource(String field, ScriptConfig scriptConfig, boolean missingBucket, DateHistogramGroupSource.Interval interval, ZoneId timeZone, Long offset) -
DateHistogramGroupSource
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static DateHistogramGroupSource fromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) throws IOException - Throws:
IOException
-
getType
- Specified by:
getTypein classSingleGroupSource
-
getInterval
-
getTimeZone
-
getRounding
-
getOffset
public long getOffset() -
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSingleGroupSource- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Overrides:
toXContentin classSingleGroupSource- Throws:
IOException
-
equals
- Overrides:
equalsin classSingleGroupSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classSingleGroupSource
-