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<IntervalsQuery.Kind,​java.lang.Object>

@JsonpDeserializable
public class IntervalsQuery
extends QueryBase
implements TaggedUnion<IntervalsQuery.Kind,​java.lang.Object>, QueryVariant, JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • _queryKind

      public Query.Kind _queryKind()
      Query variant kind.
      Specified by:
      _queryKind in interface QueryVariant
    • _kind

      public final IntervalsQuery.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<IntervalsQuery.Kind,​java.lang.Object>
      Returns:
      the variant kind
    • _get

      public final java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<IntervalsQuery.Kind,​java.lang.Object>
    • of

      public static IntervalsQuery of​(java.util.function.Function<IntervalsQuery.Builder,​ObjectBuilder<IntervalsQuery>> fn)
    • field

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

      public boolean isAllOf()
      Is this variant instance of kind all_of?
    • 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.
    • isAnyOf

      public boolean isAnyOf()
      Is this variant instance of kind any_of?
    • 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.
    • isFuzzy

      public boolean isFuzzy()
      Is this variant instance of kind fuzzy?
    • fuzzy

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

      public boolean isMatch()
      Is this variant instance of kind match?
    • match

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

      public boolean isPrefix()
      Is this variant instance of kind prefix?
    • prefix

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

      public boolean isWildcard()
      Is this variant instance of kind wildcard?
    • 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​(ObjectDeserializer<IntervalsQuery.Builder> op)