Class MovingAverageAggregation
java.lang.Object
co.elastic.clients.elasticsearch._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
- See Also:
- API specification
-
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
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
MovingAverageAggregation
-
-
Method Details
-
_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
- 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
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
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
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
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
Get thesimplevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimplekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupMovingAverageAggregationDeserializer
protected static void setupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)
-