Class PivotGroupBy
java.lang.Object
co.elastic.clients.elasticsearch.transform.PivotGroupBy
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<PivotGroupBy.Kind,java.lang.Object>
@JsonpDeserializable public class PivotGroupBy extends java.lang.Object implements TaggedUnion<PivotGroupBy.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPivotGroupBy.Builderstatic classPivotGroupBy.KindPivotGroupByvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PivotGroupBy>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description PivotGroupBy(PivotGroupByVariant value) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()PivotGroupBy.Kind_kind()Get the of the kind of variant held by this object.DateHistogramAggregationdateHistogram()Get thedate_histogramvariant value.GeoTileGridAggregationgeotileGrid()Get thegeotile_gridvariant value.HistogramAggregationhistogram()Get thehistogramvariant value.booleanisDateHistogram()Is this variant instance of kinddate_histogram?booleanisGeotileGrid()Is this variant instance of kindgeotile_grid?booleanisHistogram()Is this variant instance of kindhistogram?booleanisTerms()Is this variant instance of kindterms?static PivotGroupByof(java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPivotGroupByDeserializer(ObjectDeserializer<PivotGroupBy.Builder> op)TermsAggregationterms()Get thetermsvariant value.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
PivotGroupBy
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<PivotGroupBy.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<PivotGroupBy.Kind,java.lang.Object>
-
of
public static PivotGroupBy of(java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn) -
isDateHistogram
public boolean isDateHistogram()Is this variant instance of kinddate_histogram? -
dateHistogram
Get thedate_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_histogramkind.
-
isGeotileGrid
public boolean isGeotileGrid()Is this variant instance of kindgeotile_grid? -
geotileGrid
Get thegeotile_gridvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeotile_gridkind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram? -
histogram
Get thehistogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehistogramkind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupPivotGroupByDeserializer
-