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,QueryVariant,TaggedUnion<IntervalsQuery.Kind,java.lang.Object>
@JsonpDeserializable public class IntervalsQuery extends QueryBase implements TaggedUnion<IntervalsQuery.Kind,java.lang.Object>, QueryVariant, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervalsQuery.Builderstatic classIntervalsQuery.KindIntervalsQueryvariant kinds.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._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
All Methods Static Methods Instance Methods Concrete Methods 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.IntervalsAllOfallOf()Get theall_ofvariant value.IntervalsAnyOfanyOf()Get theany_ofvariant value.java.lang.Stringfield()Required - The target fieldIntervalsFuzzyfuzzy()Get thefuzzyvariant value.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?booleanisWildcard()Is this variant instance of kindwildcard?IntervalsMatchmatch()Get thematchvariant value.static IntervalsQueryof(java.util.function.Function<IntervalsQuery.Builder,ObjectBuilder<IntervalsQuery>> fn)IntervalsPrefixprefix()Get theprefixvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected static voidsetupIntervalsQueryDeserializer(ObjectDeserializer<IntervalsQuery.Builder> op)IntervalsWildcardwildcard()Get thewildcardvariant value.-
Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serializeInternal, setupQueryBaseDeserializer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.opensearch._types.query_dsl.QueryVariant
_toQuery
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<IntervalsQuery> _DESERIALIZER
-
-
Method Detail
-
_queryKind
public Query.Kind _queryKind()
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
_kind
public final IntervalsQuery.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<IntervalsQuery.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin 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
public IntervalsAllOf allOf()
Get theall_ofvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theall_ofkind.
-
isAnyOf
public boolean isAnyOf()
Is this variant instance of kindany_of?
-
anyOf
public IntervalsAnyOf anyOf()
Get theany_ofvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theany_ofkind.
-
isFuzzy
public boolean isFuzzy()
Is this variant instance of kindfuzzy?
-
fuzzy
public IntervalsFuzzy fuzzy()
Get thefuzzyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefuzzykind.
-
isMatch
public boolean isMatch()
Is this variant instance of kindmatch?
-
match
public IntervalsMatch match()
Get thematchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematchkind.
-
isPrefix
public boolean isPrefix()
Is this variant instance of kindprefix?
-
prefix
public IntervalsPrefix prefix()
Get theprefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theprefixkind.
-
isWildcard
public boolean isWildcard()
Is this variant instance of kindwildcard?
-
wildcard
public IntervalsWildcard wildcard()
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Description copied from class:QueryBaseSerialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable- Overrides:
serializein classQueryBase
-
setupIntervalsQueryDeserializer
protected static void setupIntervalsQueryDeserializer(ObjectDeserializer<IntervalsQuery.Builder> op)
-
-