Class IntervalsFilter

java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsFilter
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<IntervalsFilter.Kind,​java.lang.Object>

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

  • Constructor Details

  • Method Details

    • _kind

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

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

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

      public boolean isAfter()
      Is this variant instance of kind after?
    • after

      public Intervals after()
      Get the after variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the after kind.
    • isBefore

      public boolean isBefore()
      Is this variant instance of kind before?
    • before

      public Intervals before()
      Get the before variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the before kind.
    • isContainedBy

      public boolean isContainedBy()
      Is this variant instance of kind contained_by?
    • containedBy

      public Intervals containedBy()
      Get the contained_by variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the contained_by kind.
    • isContaining

      public boolean isContaining()
      Is this variant instance of kind containing?
    • containing

      public Intervals containing()
      Get the containing variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the containing kind.
    • isNotContainedBy

      public boolean isNotContainedBy()
      Is this variant instance of kind not_contained_by?
    • notContainedBy

      public Intervals notContainedBy()
      Get the not_contained_by variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the not_contained_by kind.
    • isNotContaining

      public boolean isNotContaining()
      Is this variant instance of kind not_containing?
    • notContaining

      public Intervals notContaining()
      Get the not_containing variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the not_containing kind.
    • isNotOverlapping

      public boolean isNotOverlapping()
      Is this variant instance of kind not_overlapping?
    • notOverlapping

      public Intervals notOverlapping()
      Get the not_overlapping variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the not_overlapping kind.
    • isOverlapping

      public boolean isOverlapping()
      Is this variant instance of kind overlapping?
    • overlapping

      public Intervals overlapping()
      Get the overlapping variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the overlapping kind.
    • isScript

      public boolean isScript()
      Is this variant instance of kind script?
    • script

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

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

      protected static void setupIntervalsFilterDeserializer​(ObjectDeserializer<IntervalsFilter.Builder> op)