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 class
MovingAverageAggregation.Builder
static class
MovingAverageAggregation.Kind
MovingAverageAggregation
variant 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.EwmaMovingAverageAggregation
ewma()
Get theewma
variant value.HoltMovingAverageAggregation
holt()
Get theholt
variant value.HoltWintersMovingAverageAggregation
holtWinters()
Get theholt_winters
variant value.boolean
isEwma()
Is this variant instance of kindewma
?boolean
isHolt()
Is this variant instance of kindholt
?boolean
isHoltWinters()
Is this variant instance of kindholt_winters
?boolean
isLinear()
Is this variant instance of kindlinear
?boolean
isSimple()
Is this variant instance of kindsimple
?LinearMovingAverageAggregation
linear()
Get thelinear
variant value.static MovingAverageAggregation
of(java.util.function.Function<MovingAverageAggregation.Builder,ObjectBuilder<MovingAverageAggregation>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)
SimpleMovingAverageAggregation
simple()
Get thesimple
variant 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: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(java.util.function.Function<MovingAverageAggregation.Builder,ObjectBuilder<MovingAverageAggregation>> fn) -
isEwma
public boolean isEwma()Is this variant instance of kindewma
? -
ewma
Get theewma
variant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException
- if the current variant is not of thesimple
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupMovingAverageAggregationDeserializer
protected static void setupMovingAverageAggregationDeserializer(ObjectDeserializer<MovingAverageAggregation.Builder> op)
-