Class SpanQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.SpanQuery
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class SpanQuery extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpanQuery.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SpanQuery>_DESERIALIZERstatic java.lang.StringFIELD_MASKING_SPANstatic java.lang.StringSPAN_CONTAININGstatic java.lang.StringSPAN_FIRSTstatic java.lang.StringSPAN_GAPstatic java.lang.StringSPAN_MULTIstatic java.lang.StringSPAN_NEARstatic java.lang.StringSPAN_NOTstatic java.lang.StringSPAN_ORstatic java.lang.StringSPAN_TERMstatic java.lang.StringSPAN_WITHIN -
Constructor Summary
Constructors Constructor Description SpanQuery(SpanQueryVariant value)SpanQuery(ObjectBuilder<T> builder)SpanQuery(java.util.function.Function<SpanQuery.Builder,SpanQuery.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.SpanFieldMaskingQueryfieldMaskingSpan()Get thefield_masking_spanvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSpanQueryDeserializer(DelegatingDeserializer<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, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
SPAN_CONTAINING
public static final java.lang.String SPAN_CONTAINING- See Also:
- Constant Field Values
-
FIELD_MASKING_SPAN
public static final java.lang.String FIELD_MASKING_SPAN- See Also:
- Constant Field Values
-
SPAN_FIRST
public static final java.lang.String SPAN_FIRST- See Also:
- Constant Field Values
-
SPAN_GAP
public static final java.lang.String SPAN_GAP- See Also:
- Constant Field Values
-
SPAN_MULTI
public static final java.lang.String SPAN_MULTI- See Also:
- Constant Field Values
-
SPAN_NEAR
public static final java.lang.String SPAN_NEAR- See Also:
- Constant Field Values
-
SPAN_NOT
public static final java.lang.String SPAN_NOT- See Also:
- Constant Field Values
-
SPAN_OR
public static final java.lang.String SPAN_OR- See Also:
- Constant Field Values
-
SPAN_TERM
public static final java.lang.String SPAN_TERM- See Also:
- Constant Field Values
-
SPAN_WITHIN
public static final java.lang.String SPAN_WITHIN- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
SpanQuery
-
SpanQuery
-
SpanQuery
-
-
Method Details
-
_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>
-
spanContaining
Get thespan_containingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_containingkind.
-
fieldMaskingSpan
Get thefield_masking_spanvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefield_masking_spankind.
-
spanFirst
Get thespan_firstvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_firstkind.
-
spanGap
Get thespan_gapvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_gapkind.
-
spanMulti
Get thespan_multivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_multikind.
-
spanNear
Get thespan_nearvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_nearkind.
-
spanNot
Get thespan_notvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_notkind.
-
spanOr
Get thespan_orvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_orkind.
-
spanTerm
Get thespan_termvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_termkind.
-
spanWithin
Get thespan_withinvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_withinkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupSpanQueryDeserializer
-