Class SpanQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.SpanQuery
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<SpanQuery.Kind,,Object> TaggedUnion<SpanQuery.Kind,Object>
@JsonpDeserializable
public class SpanQuery
extends Object
implements OpenTaggedUnion<SpanQuery.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsSpanQuery.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customSpanQuerydefined by a plugin?final SpanQuery.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindspan_containing?booleanIs this variant instance of kindspan_field_masking?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_field_maskingvariant 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.
-
isSpanFieldMasking
public boolean isSpanFieldMasking()Is this variant instance of kindspan_field_masking? -
spanFieldMasking
Get thespan_field_maskingvariant value.- Throws:
IllegalStateException- if the current variant is not of thespan_field_maskingkind.
-
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.
-
_isCustom
public boolean _isCustom()Is this a customSpanQuerydefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsSpanQuery.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<SpanQuery.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notSpanQuery.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupSpanQueryDeserializer
-