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 class
PivotGroupBy.Builder
static class
PivotGroupBy.Kind
PivotGroupBy
variant 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.DateHistogramAggregation
dateHistogram()
Get thedate_histogram
variant value.GeoTileGridAggregation
geotileGrid()
Get thegeotile_grid
variant value.HistogramAggregation
histogram()
Get thehistogram
variant value.boolean
isDateHistogram()
Is this variant instance of kinddate_histogram
?boolean
isGeotileGrid()
Is this variant instance of kindgeotile_grid
?boolean
isHistogram()
Is this variant instance of kindhistogram
?boolean
isTerms()
Is this variant instance of kindterms
?static PivotGroupBy
of(java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPivotGroupByDeserializer(ObjectDeserializer<PivotGroupBy.Builder> op)
TermsAggregation
terms()
Get theterms
variant value.java.lang.String
toString()
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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<PivotGroupBy.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in 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_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_histogram
kind.
-
isGeotileGrid
public boolean isGeotileGrid()Is this variant instance of kindgeotile_grid
? -
geotileGrid
Get thegeotile_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeotile_grid
kind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram
? -
histogram
Get thehistogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehistogram
kind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms
? -
terms
Get theterms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theterms
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupPivotGroupByDeserializer
-