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
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<java.lang.Object>
      Returns:
      the variant type
    • _get

      public java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<java.lang.Object>
    • spanContaining

      public SpanContainingQuery spanContaining()
      Get the span_containing variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_containing kind.
    • fieldMaskingSpan

      public SpanFieldMaskingQuery fieldMaskingSpan()
      Get the field_masking_span variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the field_masking_span kind.
    • spanFirst

      public SpanFirstQuery spanFirst()
      Get the span_first variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_first kind.
    • spanGap

      public SpanGapQuery spanGap()
      Get the span_gap variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_gap kind.
    • spanMulti

      public SpanMultiTermQuery spanMulti()
      Get the span_multi variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_multi kind.
    • spanNear

      public SpanNearQuery spanNear()
      Get the span_near variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_near kind.
    • spanNot

      public SpanNotQuery spanNot()
      Get the span_not variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_not kind.
    • spanOr

      public SpanOrQuery spanOr()
      Get the span_or variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_or kind.
    • spanTerm

      public SpanTermQuery spanTerm()
      Get the span_term variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_term kind.
    • spanWithin

      public SpanWithinQuery spanWithin()
      Get the span_within variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the span_within kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupSpanQueryDeserializer

      protected static void setupSpanQueryDeserializer​(DelegatingDeserializer<SpanQuery.Builder> op)