Class IntervalsQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.IntervalsQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,TaggedUnion<IntervalsQuery.Kind,IntervalsQueryVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IntervalsQuery
extends QueryBase
implements TaggedUnion<IntervalsQuery.Kind,IntervalsQueryVariant>, QueryVariant, PlainJsonSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal IntervalsQueryVariant_get()final IntervalsQuery.Kind_kind()Get the of the kind of variant held by this object.Queryvariant kind.allOf()Get theall_ofvariant value.anyOf()Get theany_ofvariant value.static IntervalsQuery.Builderbuilder()booleanfinal Stringfield()Required - The target fieldfuzzy()Get thefuzzyvariant value.inthashCode()booleanisAllOf()Is this variant instance of kindall_of?booleanisAnyOf()Is this variant instance of kindany_of?booleanisFuzzy()Is this variant instance of kindfuzzy?booleanisMatch()Is this variant instance of kindmatch?booleanisPrefix()Is this variant instance of kindprefix?booleanIs this variant instance of kindwildcard?match()Get thematchvariant value.static IntervalsQueryprefix()Get theprefixvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected static voidwildcard()Get thewildcardvariant value.Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serializeInternal, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.QueryVariant
toQuery
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<IntervalsQuery.Kind,IntervalsQueryVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<IntervalsQuery.Kind,IntervalsQueryVariant>
-
of
-
field
Required - The target field -
isAllOf
public boolean isAllOf()Is this variant instance of kindall_of? -
allOf
Get theall_ofvariant value.- Throws:
IllegalStateException- if the current variant is not theall_ofkind.
-
isAnyOf
public boolean isAnyOf()Is this variant instance of kindany_of? -
anyOf
Get theany_ofvariant value.- Throws:
IllegalStateException- if the current variant is not theany_ofkind.
-
isFuzzy
public boolean isFuzzy()Is this variant instance of kindfuzzy? -
fuzzy
Get thefuzzyvariant value.- Throws:
IllegalStateException- if the current variant is not thefuzzykind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch? -
match
Get thematchvariant value.- Throws:
IllegalStateException- if the current variant is not thematchkind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix? -
prefix
Get theprefixvariant value.- Throws:
IllegalStateException- if the current variant is not theprefixkind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
IllegalStateException- if the current variant is not thewildcardkind.
-
serialize
Description copied from class:QueryBaseSerialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable- Overrides:
serializein classQueryBase
-
toBuilder
-
builder
-
setupIntervalsQueryDeserializer
protected static void setupIntervalsQueryDeserializer(ObjectDeserializer<IntervalsQuery.Builder> op) -
hashCode
public int hashCode() -
equals
-