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
Modifier and TypeClassDescriptionstatic class
static enum
MovingAverageAggregation
variant kinds. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_get()
_kind()
Get the of the kind of variant held by this object.ewma()
Get theewma
variant value.holt()
Get theholt
variant value.Get theholt_winters
variant value.boolean
isEwma()
Is this variant instance of kindewma
?boolean
isHolt()
Is this variant instance of kindholt
?boolean
Is this variant instance of kindholt_winters
?boolean
isLinear()
Is this variant instance of kindlinear
?boolean
isSimple()
Is this variant instance of kindsimple
?linear()
Get thelinear
variant value.static MovingAverageAggregation
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
simple()
Get thesimple
variant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
MovingAverageAggregation
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<MovingAverageAggregation.Kind,
MovingAverageAggregationVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 theewma
variant value.- Throws:
IllegalStateException
- if the current variant is not of theewma
kind.
-
isHolt
public boolean isHolt()Is this variant instance of kindholt
? -
holt
Get theholt
variant value.- Throws:
IllegalStateException
- if the current variant is not of theholt
kind.
-
isHoltWinters
public boolean isHoltWinters()Is this variant instance of kindholt_winters
? -
holtWinters
Get theholt_winters
variant value.- Throws:
IllegalStateException
- if the current variant is not of theholt_winters
kind.
-
isLinear
public boolean isLinear()Is this variant instance of kindlinear
? -
linear
Get thelinear
variant value.- Throws:
IllegalStateException
- if the current variant is not of thelinear
kind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple
? -
simple
Get thesimple
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesimple
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupMovingAverageAggregationDeserializer
protected static void setupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)
-