Class PivotGroupBy
java.lang.Object
co.elastic.clients.elasticsearch.transform.PivotGroupBy
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<PivotGroupBy.Kind,Object>
@JsonpDeserializable
public class PivotGroupBy
extends Object
implements TaggedUnion<PivotGroupBy.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final PivotGroupBy.Kind_kind()Get the of the kind of variant held by this object.Get thedate_histogramvariant value.Get thegeotile_gridvariant value.Get thehistogramvariant value.booleanIs this variant instance of kinddate_histogram?booleanIs this variant instance of kindgeotile_grid?booleanIs this variant instance of kindhistogram?booleanisTerms()Is this variant instance of kindterms?static PivotGroupByvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidterms()Get thetermsvariant value.toString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<PivotGroupBy.Kind,Object>
-
of
-
isDateHistogram
public boolean isDateHistogram()Is this variant instance of kinddate_histogram? -
dateHistogram
Get thedate_histogramvariant value.- Throws:
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:
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:
IllegalStateException- if the current variant is not of thehistogramkind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupPivotGroupByDeserializer
-