Class Preprocessor
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.Preprocessor
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Preprocessor.Kind,java.lang.Object>
@JsonpDeserializable public class Preprocessor extends java.lang.Object implements TaggedUnion<Preprocessor.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPreprocessor.Builderstatic classPreprocessor.KindPreprocessorvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Preprocessor>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description Preprocessor(PreprocessorVariant value) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()Preprocessor.Kind_kind()Get the of the kind of variant held by this object.FrequencyEncodingPreprocessorfrequencyEncoding()Get thefrequency_encodingvariant value.booleanisFrequencyEncoding()Is this variant instance of kindfrequency_encoding?booleanisOneHotEncoding()Is this variant instance of kindone_hot_encoding?booleanisTargetMeanEncoding()Is this variant instance of kindtarget_mean_encoding?static Preprocessorof(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn)OneHotEncodingPreprocessoroneHotEncoding()Get theone_hot_encodingvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPreprocessorDeserializer(ObjectDeserializer<Preprocessor.Builder> op)TargetMeanEncodingPreprocessortargetMeanEncoding()Get thetarget_mean_encodingvariant value.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Preprocessor
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Preprocessor.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<Preprocessor.Kind,java.lang.Object>
-
of
public static Preprocessor of(java.util.function.Function<Preprocessor.Builder,ObjectBuilder<Preprocessor>> fn) -
isFrequencyEncoding
public boolean isFrequencyEncoding()Is this variant instance of kindfrequency_encoding? -
frequencyEncoding
Get thefrequency_encodingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefrequency_encodingkind.
-
isOneHotEncoding
public boolean isOneHotEncoding()Is this variant instance of kindone_hot_encoding? -
oneHotEncoding
Get theone_hot_encodingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theone_hot_encodingkind.
-
isTargetMeanEncoding
public boolean isTargetMeanEncoding()Is this variant instance of kindtarget_mean_encoding? -
targetMeanEncoding
Get thetarget_mean_encodingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetarget_mean_encodingkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupPreprocessorDeserializer
-