Class SpanQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.SpanQuery
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SpanQuery.Kind,Object>
@JsonpDeserializable
public class SpanQuery
extends Object
implements TaggedUnion<SpanQuery.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final SpanQuery.Kind_kind()Get the of the kind of variant held by this object.Get thefield_masking_spanvariant value.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.toString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SpanQuery.Kind,Object>
-
of
-
isSpanContaining
public boolean isSpanContaining()Is this variant instance of kindspan_containing? -
spanContaining
Get thespan_containingvariant value.- Throws:
IllegalStateException- if the current variant is not of thespan_containingkind.
-
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 of thefield_masking_spankind.
-
isSpanFirst
public boolean isSpanFirst()Is this variant instance of kindspan_first? -
spanFirst
Get thespan_firstvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of 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 of 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 of 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 of 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 of 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 of 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 of thespan_withinkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupSpanQueryDeserializer
-