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
-
Field Summary
-
Constructor Summary
-
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_span
variant value.boolean
Is this variant instance of kindfield_masking_span
?boolean
Is this variant instance of kindspan_containing
?boolean
Is this variant instance of kindspan_first
?boolean
Is this variant instance of kindspan_gap
?boolean
Is this variant instance of kindspan_multi
?boolean
Is this variant instance of kindspan_near
?boolean
Is this variant instance of kindspan_not
?boolean
isSpanOr()
Is this variant instance of kindspan_or
?boolean
Is this variant instance of kindspan_term
?boolean
Is this variant instance of kindspan_within
?static SpanQuery
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Get thespan_containing
variant value.Get thespan_first
variant value.spanGap()
Get thespan_gap
variant value.Get thespan_multi
variant value.spanNear()
Get thespan_near
variant value.spanNot()
Get thespan_not
variant value.spanOr()
Get thespan_or
variant value.spanTerm()
Get thespan_term
variant value.Get thespan_within
variant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
SpanQuery
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<SpanQuery.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<SpanQuery.Kind,
Object>
-
of
-
isSpanContaining
public boolean isSpanContaining()Is this variant instance of kindspan_containing
? -
spanContaining
Get thespan_containing
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_containing
kind.
-
isFieldMaskingSpan
public boolean isFieldMaskingSpan()Is this variant instance of kindfield_masking_span
? -
fieldMaskingSpan
Get thefield_masking_span
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefield_masking_span
kind.
-
isSpanFirst
public boolean isSpanFirst()Is this variant instance of kindspan_first
? -
spanFirst
Get thespan_first
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_first
kind.
-
isSpanGap
public boolean isSpanGap()Is this variant instance of kindspan_gap
? -
spanGap
Get thespan_gap
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_gap
kind.
-
isSpanMulti
public boolean isSpanMulti()Is this variant instance of kindspan_multi
? -
spanMulti
Get thespan_multi
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_multi
kind.
-
isSpanNear
public boolean isSpanNear()Is this variant instance of kindspan_near
? -
spanNear
Get thespan_near
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_near
kind.
-
isSpanNot
public boolean isSpanNot()Is this variant instance of kindspan_not
? -
spanNot
Get thespan_not
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_not
kind.
-
isSpanOr
public boolean isSpanOr()Is this variant instance of kindspan_or
? -
spanOr
Get thespan_or
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_or
kind.
-
isSpanTerm
public boolean isSpanTerm()Is this variant instance of kindspan_term
? -
spanTerm
Get thespan_term
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_term
kind.
-
isSpanWithin
public boolean isSpanWithin()Is this variant instance of kindspan_within
? -
spanWithin
Get thespan_within
variant value.- Throws:
IllegalStateException
- if the current variant is not of thespan_within
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupSpanQueryDeserializer
-