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 Object
implements TaggedUnion<MovingAverageAggregation.Kind,MovingAverageAggregationVariant>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumMovingAverageAggregationvariant kinds. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_get()_kind()Get the of the kind of variant held by this object.ewma()Get theewmavariant value.holt()Get theholtvariant value.Get theholt_wintersvariant value.booleanisEwma()Is this variant instance of kindewma?booleanisHolt()Is this variant instance of kindholt?booleanIs this variant instance of kindholt_winters?booleanisLinear()Is this variant instance of kindlinear?booleanisSimple()Is this variant instance of kindsimple?linear()Get thelinearvariant value.static MovingAverageAggregationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsimple()Get thesimplevariant value.toString()
-
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(Function<MovingAverageAggregation.Builder, ObjectBuilder<MovingAverageAggregation>> fn) -
isEwma
public boolean isEwma()Is this variant instance of kindewma? -
ewma
Get theewmavariant value.- Throws:
IllegalStateException- if the current variant is not of theewmakind.
-
isHolt
public boolean isHolt()Is this variant instance of kindholt? -
holt
Get theholtvariant value.- Throws:
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:
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:
IllegalStateException- if the current variant is not of thelinearkind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple? -
simple
Get thesimplevariant value.- Throws:
IllegalStateException- if the current variant is not of thesimplekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupMovingAverageAggregationDeserializer
protected static void setupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)
-