Class SmoothingModel

java.lang.Object
co.elastic.clients.elasticsearch._core.search.SmoothingModel
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<java.lang.Object>

@JsonpDeserializable
public class SmoothingModel
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>
    • laplace

      public LaplaceSmoothingModel laplace()
      Get the laplace variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the laplace kind.
    • linearInterpolation

      public LinearInterpolationSmoothingModel linearInterpolation()
      Get the linear_interpolation variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the linear_interpolation kind.
    • stupidBackoff

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

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

      protected static void setupSmoothingModelDeserializer​(DelegatingDeserializer<SmoothingModel.Builder> op)