Class SpanQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.SpanQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<SpanQuery.Kind,SpanQueryVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SpanQuery
extends Object
implements TaggedUnion<SpanQuery.Kind,SpanQueryVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SpanQueryVariant_get()final SpanQuery.Kind_kind()Get the of the kind of variant held by this object.static SpanQuery.Builderbuilder()booleanGet thefield_masking_spanvariant value.inthashCode()booleanIs this variant instance of kindfield_masking_span?booleanIs this variant instance of kindspan_containing?booleanIs this variant instance of kindspan_first?booleanIs this variant instance of kindspan_gap?booleanIs this variant instance of kindspan_multi?booleanIs this variant instance of kindspan_near?booleanIs this variant instance of kindspan_not?booleanisSpanOr()Is this variant instance of kindspan_or?booleanIs this variant instance of kindspan_term?booleanIs this variant instance of kindspan_within?static SpanQueryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thespan_containingvariant value.Get thespan_firstvariant value.spanGap()Get thespan_gapvariant value.Get thespan_multivariant value.spanNear()Get thespan_nearvariant value.spanNot()Get thespan_notvariant value.spanOr()Get thespan_orvariant value.spanTerm()Get thespan_termvariant value.Get thespan_withinvariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
SpanQuery
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SpanQuery.Kind,SpanQueryVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SpanQuery.Kind,SpanQueryVariant>
-
of
-
isFieldMaskingSpan
public boolean isFieldMaskingSpan()Is this variant instance of kindfield_masking_span? -
fieldMaskingSpan
Get thefield_masking_spanvariant value.- Throws:
IllegalStateException- if the current variant is not thefield_masking_spankind.
-
isSpanContaining
public boolean isSpanContaining()Is this variant instance of kindspan_containing? -
spanContaining
Get thespan_containingvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_containingkind.
-
isSpanFirst
public boolean isSpanFirst()Is this variant instance of kindspan_first? -
spanFirst
Get thespan_firstvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_firstkind.
-
isSpanGap
public boolean isSpanGap()Is this variant instance of kindspan_gap? -
spanGap
Get thespan_gapvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_gapkind.
-
isSpanMulti
public boolean isSpanMulti()Is this variant instance of kindspan_multi? -
spanMulti
Get thespan_multivariant value.- Throws:
IllegalStateException- if the current variant is not thespan_multikind.
-
isSpanNear
public boolean isSpanNear()Is this variant instance of kindspan_near? -
spanNear
Get thespan_nearvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_nearkind.
-
isSpanNot
public boolean isSpanNot()Is this variant instance of kindspan_not? -
spanNot
Get thespan_notvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_notkind.
-
isSpanOr
public boolean isSpanOr()Is this variant instance of kindspan_or? -
spanOr
Get thespan_orvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_orkind.
-
isSpanTerm
public boolean isSpanTerm()Is this variant instance of kindspan_term? -
spanTerm
Get thespan_termvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_termkind.
-
isSpanWithin
public boolean isSpanWithin()Is this variant instance of kindspan_within? -
spanWithin
Get thespan_withinvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_withinkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupSpanQueryDeserializer
-
hashCode
public int hashCode() -
equals
-