Class PivotGroupBy
java.lang.Object
co.elastic.clients.elasticsearch.transform.PivotGroupBy
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class PivotGroupBy extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPivotGroupBy.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PivotGroupBy>_DESERIALIZERstatic java.lang.StringDATE_HISTOGRAMstatic java.lang.StringGEOTILE_GRIDstatic java.lang.StringHISTOGRAMstatic java.lang.StringTERMS -
Constructor Summary
Constructors Constructor Description PivotGroupBy(PivotGroupByVariant value)PivotGroupBy(ObjectBuilder<T> builder)PivotGroupBy(java.util.function.Function<PivotGroupBy.Builder,PivotGroupBy.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.DateHistogramAggregationdateHistogram()Get thedate_histogramvariant value.GeoTileGridAggregationgeotileGrid()Get thegeotile_gridvariant value.HistogramAggregationhistogram()Get thehistogramvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPivotGroupByDeserializer(DelegatingDeserializer<PivotGroupBy.Builder> op)TermsAggregationterms()Get thetermsvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
DATE_HISTOGRAM
public static final java.lang.String DATE_HISTOGRAM- See Also:
- Constant Field Values
-
GEOTILE_GRID
public static final java.lang.String GEOTILE_GRID- See Also:
- Constant Field Values
-
HISTOGRAM
public static final java.lang.String HISTOGRAM- See Also:
- Constant Field Values
-
TERMS
public static final java.lang.String TERMS- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
PivotGroupBy
-
PivotGroupBy
-
PivotGroupBy
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
dateHistogram
Get thedate_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_histogramkind.
-
geotileGrid
Get thegeotile_gridvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeotile_gridkind.
-
histogram
Get thehistogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehistogramkind.
-
terms
Get thetermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupPivotGroupByDeserializer
protected static void setupPivotGroupByDeserializer(DelegatingDeserializer<PivotGroupBy.Builder> op)
-