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 thedatevariant value.booleanisDate()Is this variant instance of kinddate?booleanisNumber()Is this variant instance of kindnumber?booleanisTerm()Is this variant instance of kindterm?booleanIs this variant instance of kinduntyped?number()Get thenumbervariant value.static RangeQueryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) term()Get thetermvariant value.toString()untyped()Get theuntypedvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQueryVariant
_toApiKeyQueryMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQueryMethods inherited from interface co.elastic.clients.elasticsearch.security.query_role.RoleQueryVariant
_toRoleQueryMethods 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:
_apiKeyQueryKindin interfaceApiKeyQueryVariant
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
_roleQueryKind
RoleQuery variant kind.- Specified by:
_roleQueryKindin interfaceRoleQueryVariant
-
_userQueryKind
UserQuery variant kind.- Specified by:
_userQueryKindin interfaceUserQueryVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<RangeQuery.Kind,RangeQueryVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RangeQuery.Kind,RangeQueryVariant>
-
of
-
isDate
public boolean isDate()Is this variant instance of kinddate? -
date
Get thedatevariant value.- Throws:
IllegalStateException- if the current variant is not of thedatekind.
-
isNumber
public boolean isNumber()Is this variant instance of kindnumber? -
number
Get thenumbervariant value.- Throws:
IllegalStateException- if the current variant is not of thenumberkind.
-
isTerm
public boolean isTerm()Is this variant instance of kindterm? -
term
Get thetermvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermkind.
-
isUntyped
public boolean isUntyped()Is this variant instance of kinduntyped? -
untyped
Get theuntypedvariant value.- Throws:
IllegalStateException- if the current variant is not of theuntypedkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-