Class RangeQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.RangeQuery
- All Implemented Interfaces:
QueryVariant
,ApiKeyQueryVariant
,RoleQueryVariant
,UserQueryVariant
,JsonpSerializable
,TaggedUnion<RangeQuery.Kind,
RangeQueryVariant>
@JsonpDeserializable
public class RangeQuery
extends Object
implements TaggedUnion<RangeQuery.Kind,RangeQueryVariant>, ApiKeyQueryVariant, QueryVariant, RoleQueryVariant, UserQueryVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApiKeyQuery variant kind.final RangeQueryVariant
_get()
final RangeQuery.Kind
_kind()
Get the of the kind of variant held by this object.Query variant kind.RoleQuery variant kind.UserQuery variant kind.date()
Get thedate
variant value.boolean
isDate()
Is this variant instance of kinddate
?boolean
isNumber()
Is this variant instance of kindnumber
?boolean
isTerm()
Is this variant instance of kindterm
?boolean
Is this variant instance of kinduntyped
?number()
Get thenumber
variant value.static RangeQuery
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) term()
Get theterm
variant value.toString()
untyped()
Get theuntyped
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant
_toApiKeyQuery
Methods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
Methods inherited from interface co.elastic.clients.elasticsearch.security.query_role.RoleQueryVariant
_toRoleQuery
Methods inherited from interface co.elastic.clients.elasticsearch.security.query_user.UserQueryVariant
_toUserQuery
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
RangeQuery
-
-
Method Details
-
_apiKeyQueryKind
ApiKeyQuery variant kind.- Specified by:
_apiKeyQueryKind
in interfaceApiKeyQueryVariant
-
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
_roleQueryKind
RoleQuery variant kind.- Specified by:
_roleQueryKind
in interfaceRoleQueryVariant
-
_userQueryKind
UserQuery variant kind.- Specified by:
_userQueryKind
in interfaceUserQueryVariant
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<RangeQuery.Kind,
RangeQueryVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<RangeQuery.Kind,
RangeQueryVariant>
-
of
-
isDate
public boolean isDate()Is this variant instance of kinddate
? -
date
Get thedate
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedate
kind.
-
isNumber
public boolean isNumber()Is this variant instance of kindnumber
? -
number
Get thenumber
variant value.- Throws:
IllegalStateException
- if the current variant is not of thenumber
kind.
-
isTerm
public boolean isTerm()Is this variant instance of kindterm
? -
term
Get theterm
variant value.- Throws:
IllegalStateException
- if the current variant is not of theterm
kind.
-
isUntyped
public boolean isUntyped()Is this variant instance of kinduntyped
? -
untyped
Get theuntyped
variant value.- Throws:
IllegalStateException
- if the current variant is not of theuntyped
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-