Class MovingAverageAggregation
- java.lang.Object
-
- org.opensearch.client.opensearch._types.aggregations.MovingAverageAggregation
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<MovingAverageAggregation.Kind,MovingAverageAggregationVariant>
@JsonpDeserializable public class MovingAverageAggregation extends java.lang.Object implements TaggedUnion<MovingAverageAggregation.Kind,MovingAverageAggregationVariant>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMovingAverageAggregation.Builderstatic classMovingAverageAggregation.KindMovingAverageAggregationvariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<MovingAverageAggregation>_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description MovingAverageAggregation(MovingAverageAggregationVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MovingAverageAggregationVariant_get()MovingAverageAggregation.Kind_kind()Get the of the kind of variant held by this object.EwmaMovingAverageAggregationewma()Get theewmavariant value.HoltMovingAverageAggregationholt()Get theholtvariant value.HoltWintersMovingAverageAggregationholtWinters()Get theholt_wintersvariant value.booleanisEwma()Is this variant instance of kindewma?booleanisHolt()Is this variant instance of kindholt?booleanisHoltWinters()Is this variant instance of kindholt_winters?booleanisLinear()Is this variant instance of kindlinear?booleanisSimple()Is this variant instance of kindsimple?LinearMovingAverageAggregationlinear()Get thelinearvariant value.static MovingAverageAggregationof(java.util.function.Function<MovingAverageAggregation.Builder,ObjectBuilder<MovingAverageAggregation>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)SimpleMovingAverageAggregationsimple()Get thesimplevariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<MovingAverageAggregation> _DESERIALIZER
-
-
Constructor Detail
-
MovingAverageAggregation
public MovingAverageAggregation(MovingAverageAggregationVariant value)
-
-
Method Detail
-
_kind
public final MovingAverageAggregation.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<MovingAverageAggregation.Kind,MovingAverageAggregationVariant>- Returns:
- the variant kind
-
_get
public final MovingAverageAggregationVariant _get()
- Specified by:
_getin interfaceTaggedUnion<MovingAverageAggregation.Kind,MovingAverageAggregationVariant>
-
of
public static MovingAverageAggregation of(java.util.function.Function<MovingAverageAggregation.Builder,ObjectBuilder<MovingAverageAggregation>> fn)
-
isEwma
public boolean isEwma()
Is this variant instance of kindewma?
-
ewma
public EwmaMovingAverageAggregation ewma()
Get theewmavariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theewmakind.
-
isHolt
public boolean isHolt()
Is this variant instance of kindholt?
-
holt
public HoltMovingAverageAggregation holt()
Get theholtvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theholtkind.
-
isHoltWinters
public boolean isHoltWinters()
Is this variant instance of kindholt_winters?
-
holtWinters
public HoltWintersMovingAverageAggregation holtWinters()
Get theholt_wintersvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theholt_winterskind.
-
isLinear
public boolean isLinear()
Is this variant instance of kindlinear?
-
linear
public LinearMovingAverageAggregation linear()
Get thelinearvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelinearkind.
-
isSimple
public boolean isSimple()
Is this variant instance of kindsimple?
-
simple
public SimpleMovingAverageAggregation simple()
Get thesimplevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimplekind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupMovingAverageAggregationDeserializer
protected static void setupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)
-
-