Class FieldDateMath
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.FieldDateMath
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<FieldDateMath.Kind,Object>
@JsonpDeserializable
public class FieldDateMath
extends Object
implements TaggedUnion<FieldDateMath.Kind,Object>, JsonpSerializable
A date range limit, represented either as a DateMath expression or a number
expressed according to the target field's precision.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final FieldDateMath.Kind_kind()Get the of the kind of variant held by this object.expr()Get theexprvariant value.booleanisExpr()Is this variant instance of kindexpr?booleanisValue()Is this variant instance of kindvalue?static FieldDateMathvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()value()Get thevaluevariant value.
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<FieldDateMath.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<FieldDateMath.Kind,Object>
-
_toJsonString
-
of
-
isExpr
public boolean isExpr()Is this variant instance of kindexpr? -
expr
Get theexprvariant value.- Throws:
IllegalStateException- if the current variant is not of theexprkind.
-
isValue
public boolean isValue()Is this variant instance of kindvalue? -
value
Get thevaluevariant value.- Throws:
IllegalStateException- if the current variant is not of thevaluekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-