java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsQuery
All Implemented Interfaces:
QueryVariant, JsonpSerializable, TaggedUnion<java.lang.Object>, UnionVariant

@JsonpDeserializable
public class IntervalsQuery
extends QueryBase
implements TaggedUnion<java.lang.Object>, QueryVariant, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _variantType

      public java.lang.String _variantType()
      Query variant type
      Specified by:
      _variantType in interface UnionVariant
    • _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>
    • field

      public java.lang.String field()
      Required - The target field

      API name: field

    • allOf

      public IntervalsAllOf allOf()
      Get the all_of variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the all_of kind.
    • anyOf

      public IntervalsAnyOf anyOf()
      Get the any_of variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the any_of kind.
    • fuzzy

      public IntervalsFuzzy fuzzy()
      Get the fuzzy variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the fuzzy kind.
    • match

      public IntervalsMatch match()
      Get the match variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the match kind.
    • prefix

      public IntervalsPrefix prefix()
      Get the prefix variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the prefix kind.
    • wildcard

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

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Description copied from class: QueryBase
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
      Overrides:
      serialize in class QueryBase
    • setupIntervalsQueryDeserializer

      protected static void setupIntervalsQueryDeserializer​(DelegatingDeserializer<IntervalsQuery.Builder> op)