Class IntervalsQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsQuery
- All Implemented Interfaces:
QueryVariant
,JsonpSerializable
,TaggedUnion<IntervalsQuery.Kind,java.lang.Object>
@JsonpDeserializable public class IntervalsQuery extends QueryBase implements TaggedUnion<IntervalsQuery.Kind,java.lang.Object>, QueryVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntervalsQuery.Builder
static class
IntervalsQuery.Kind
IntervalsQuery
variant kinds.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IntervalsQuery>
_DESERIALIZER
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
IntervalsQuery.Kind
_kind()
Get the of the kind of variant held by this object.Query.Kind
_queryKind()
Query variant kind.IntervalsAllOf
allOf()
Get theall_of
variant value.IntervalsAnyOf
anyOf()
Get theany_of
variant value.java.lang.String
field()
Required - The target fieldIntervalsFuzzy
fuzzy()
Get thefuzzy
variant value.boolean
isAllOf()
Is this variant instance of kindall_of
?boolean
isAnyOf()
Is this variant instance of kindany_of
?boolean
isFuzzy()
Is this variant instance of kindfuzzy
?boolean
isMatch()
Is this variant instance of kindmatch
?boolean
isPrefix()
Is this variant instance of kindprefix
?boolean
isWildcard()
Is this variant instance of kindwildcard
?IntervalsMatch
match()
Get thematch
variant value.static IntervalsQuery
of(java.util.function.Function<IntervalsQuery.Builder,ObjectBuilder<IntervalsQuery>> fn)
IntervalsPrefix
prefix()
Get theprefix
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected static void
setupIntervalsQueryDeserializer(ObjectDeserializer<IntervalsQuery.Builder> op)
IntervalsWildcard
wildcard()
Get thewildcard
variant value.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serializeInternal, setupQueryBaseDeserializer, toString
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._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<IntervalsQuery.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<IntervalsQuery.Kind,java.lang.Object>
-
of
public static IntervalsQuery of(java.util.function.Function<IntervalsQuery.Builder,ObjectBuilder<IntervalsQuery>> fn) -
field
public final java.lang.String field()Required - The target field -
isAllOf
public boolean isAllOf()Is this variant instance of kindall_of
? -
allOf
Get theall_of
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theall_of
kind.
-
isAnyOf
public boolean isAnyOf()Is this variant instance of kindany_of
? -
anyOf
Get theany_of
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theany_of
kind.
-
isFuzzy
public boolean isFuzzy()Is this variant instance of kindfuzzy
? -
fuzzy
Get thefuzzy
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefuzzy
kind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch
? -
match
Get thematch
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thematch
kind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix
? -
prefix
Get theprefix
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theprefix
kind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard
? -
wildcard
Get thewildcard
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thewildcard
kind.
-
serialize
Description copied from class:QueryBase
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
- Overrides:
serialize
in classQueryBase
-
setupIntervalsQueryDeserializer
protected static void setupIntervalsQueryDeserializer(ObjectDeserializer<IntervalsQuery.Builder> op)
-