java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.Preprocessor
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<java.lang.Object>

@JsonpDeserializable
public class Preprocessor
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>
    • frequencyEncoding

      public FrequencyEncodingPreprocessor frequencyEncoding()
      Get the frequency_encoding variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the frequency_encoding kind.
    • oneHotEncoding

      public OneHotEncodingPreprocessor oneHotEncoding()
      Get the one_hot_encoding variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the one_hot_encoding kind.
    • targetMeanEncoding

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

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

      protected static void setupPreprocessorDeserializer​(DelegatingDeserializer<Preprocessor.Builder> op)