Class SpanQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.SpanQuery
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SpanQuery.Kind,java.lang.Object>
@JsonpDeserializable public class SpanQuery extends java.lang.Object implements TaggedUnion<SpanQuery.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpanQuery.Builderstatic classSpanQuery.KindSpanQueryvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SpanQuery>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description SpanQuery(SpanQueryVariant value) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()SpanQuery.Kind_kind()Get the of the kind of variant held by this object.SpanFieldMaskingQueryfieldMaskingSpan()Get thefield_masking_spanvariant value.booleanisFieldMaskingSpan()Is this variant instance of kindfield_masking_span?booleanisSpanContaining()Is this variant instance of kindspan_containing?booleanisSpanFirst()Is this variant instance of kindspan_first?booleanisSpanGap()Is this variant instance of kindspan_gap?booleanisSpanMulti()Is this variant instance of kindspan_multi?booleanisSpanNear()Is this variant instance of kindspan_near?booleanisSpanNot()Is this variant instance of kindspan_not?booleanisSpanOr()Is this variant instance of kindspan_or?booleanisSpanTerm()Is this variant instance of kindspan_term?booleanisSpanWithin()Is this variant instance of kindspan_within?static SpanQueryof(java.util.function.Function<SpanQuery.Builder,ObjectBuilder<SpanQuery>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSpanQueryDeserializer(ObjectDeserializer<SpanQuery.Builder> op)SpanContainingQueryspanContaining()Get thespan_containingvariant value.SpanFirstQueryspanFirst()Get thespan_firstvariant value.SpanGapQueryspanGap()Get thespan_gapvariant value.SpanMultiTermQueryspanMulti()Get thespan_multivariant value.SpanNearQueryspanNear()Get thespan_nearvariant value.SpanNotQueryspanNot()Get thespan_notvariant value.SpanOrQueryspanOr()Get thespan_orvariant value.SpanTermQueryspanTerm()Get thespan_termvariant value.SpanWithinQueryspanWithin()Get thespan_withinvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<SpanQuery.Kind,java.lang.Object>
-
of
public static SpanQuery of(java.util.function.Function<SpanQuery.Builder,ObjectBuilder<SpanQuery>> fn) -
isSpanContaining
public boolean isSpanContaining()Is this variant instance of kindspan_containing? -
spanContaining
Get thespan_containingvariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of thespan_withinkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupSpanQueryDeserializer
-