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<java.lang.Object>,UnionVariant
@JsonpDeserializable public class IntervalsQuery extends QueryBase implements TaggedUnion<java.lang.Object>, QueryVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervalsQuery.BuilderNested 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>_DESERIALIZERstatic java.lang.StringALL_OFstatic java.lang.StringANY_OFstatic java.lang.StringFUZZYstatic java.lang.StringMATCHstatic java.lang.StringPREFIXstatic java.lang.StringWILDCARD -
Constructor Summary
Constructors Constructor Description IntervalsQuery(java.util.function.Function<IntervalsQuery.Builder,IntervalsQuery.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.java.lang.String_variantType()Queryvariant typeIntervalsAllOfallOf()Get theall_ofvariant value.IntervalsAnyOfanyOf()Get theany_ofvariant value.java.lang.Stringfield()Required - The target fieldIntervalsFuzzyfuzzy()Get thefuzzyvariant value.IntervalsMatchmatch()Get thematchvariant value.IntervalsPrefixprefix()Get theprefixvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected static voidsetupIntervalsQueryDeserializer(DelegatingDeserializer<IntervalsQuery.Builder> op)IntervalsWildcardwildcard()Get thewildcardvariant value.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serializeInternal, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQueryMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
ALL_OF
public static final java.lang.String ALL_OF- See Also:
- Constant Field Values
-
ANY_OF
public static final java.lang.String ANY_OF- See Also:
- Constant Field Values
-
FUZZY
public static final java.lang.String FUZZY- See Also:
- Constant Field Values
-
MATCH
public static final java.lang.String MATCH- See Also:
- Constant Field Values
-
PREFIX
public static final java.lang.String PREFIX- See Also:
- Constant Field Values
-
WILDCARD
public static final java.lang.String WILDCARD- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
IntervalsQuery
public IntervalsQuery(java.util.function.Function<IntervalsQuery.Builder,IntervalsQuery.Builder> fn)
-
-
Method Details
-
_variantType
public java.lang.String _variantType()Queryvariant type- Specified by:
_variantTypein interfaceUnionVariant
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
field
public java.lang.String field()Required - The target fieldAPI name:
field -
allOf
Get theall_ofvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theall_ofkind.
-
anyOf
Get theany_ofvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theany_ofkind.
-
fuzzy
Get thefuzzyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefuzzykind.
-
match
Get thematchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematchkind.
-
prefix
Get theprefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theprefixkind.
-
wildcard
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
serialize
Description copied from class:QueryBaseSerialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable- Overrides:
serializein classQueryBase
-
setupIntervalsQueryDeserializer
protected static void setupIntervalsQueryDeserializer(DelegatingDeserializer<IntervalsQuery.Builder> op)
-