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 class
SpanQuery.Builder
static class
SpanQuery.Kind
SpanQuery
variant 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.SpanFieldMaskingQuery
fieldMaskingSpan()
Get thefield_masking_span
variant value.boolean
isFieldMaskingSpan()
Is this variant instance of kindfield_masking_span
?boolean
isSpanContaining()
Is this variant instance of kindspan_containing
?boolean
isSpanFirst()
Is this variant instance of kindspan_first
?boolean
isSpanGap()
Is this variant instance of kindspan_gap
?boolean
isSpanMulti()
Is this variant instance of kindspan_multi
?boolean
isSpanNear()
Is this variant instance of kindspan_near
?boolean
isSpanNot()
Is this variant instance of kindspan_not
?boolean
isSpanOr()
Is this variant instance of kindspan_or
?boolean
isSpanTerm()
Is this variant instance of kindspan_term
?boolean
isSpanWithin()
Is this variant instance of kindspan_within
?static SpanQuery
of(java.util.function.Function<SpanQuery.Builder,ObjectBuilder<SpanQuery>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupSpanQueryDeserializer(ObjectDeserializer<SpanQuery.Builder> op)
SpanContainingQuery
spanContaining()
Get thespan_containing
variant value.SpanFirstQuery
spanFirst()
Get thespan_first
variant value.SpanGapQuery
spanGap()
Get thespan_gap
variant value.SpanMultiTermQuery
spanMulti()
Get thespan_multi
variant value.SpanNearQuery
spanNear()
Get thespan_near
variant value.SpanNotQuery
spanNot()
Get thespan_not
variant value.SpanOrQuery
spanOr()
Get thespan_or
variant value.SpanTermQuery
spanTerm()
Get thespan_term
variant value.SpanWithinQuery
spanWithin()
Get thespan_within
variant 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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<SpanQuery.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in 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_containing
variant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException
- if the current variant is not of thespan_within
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupSpanQueryDeserializer
-