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
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final FieldDateMath.Kind
_kind()
Get the of the kind of variant held by this object.expr()
Get theexpr
variant value.boolean
isExpr()
Is this variant instance of kindexpr
?boolean
isValue()
Is this variant instance of kindvalue
?static FieldDateMath
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
value()
Get thevalue
variant value.
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<FieldDateMath.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<FieldDateMath.Kind,
Object>
-
_toJsonString
-
of
-
isExpr
public boolean isExpr()Is this variant instance of kindexpr
? -
expr
Get theexpr
variant value.- Throws:
IllegalStateException
- if the current variant is not of theexpr
kind.
-
isValue
public boolean isValue()Is this variant instance of kindvalue
? -
value
Get thevalue
variant value.- Throws:
IllegalStateException
- if the current variant is not of thevalue
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-