Module org.elasticsearch.xcore
Class HistogramGroupSource
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.pivot.SingleGroupSource
org.elasticsearch.xpack.core.transform.transforms.pivot.HistogramGroupSource
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
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
ConstructorsConstructorDescriptionHistogramGroupSource(String field, ScriptConfig scriptConfig, boolean missingBucket, double interval) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HistogramGroupSourcefromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) doublegetType()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
-
HistogramGroupSource
public HistogramGroupSource(String field, ScriptConfig scriptConfig, boolean missingBucket, double interval) -
HistogramGroupSource
- Throws:
IOException
-
-
Method Details
-
getType
- Specified by:
getTypein classSingleGroupSource
-
fromXContent
public static HistogramGroupSource fromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSingleGroupSource- Throws:
IOException
-
getInterval
public double getInterval() -
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
-