Class ColumnTransformer
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ColumnTransformer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ColumnTransformer>
public final class ColumnTransformer
extends Object
implements com.azure.json.JsonSerializable<ColumnTransformer>
Column transformer parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfields()Get the fields property: Fields to apply transformer logic on.static ColumnTransformerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ColumnTransformer from the JsonReader.Get the parameters property: Different properties to be passed to transformer.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFields(List<String> fields) Set the fields property: Fields to apply transformer logic on.withParameters(Object parameters) Set the parameters property: Different properties to be passed to transformer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ColumnTransformer
public ColumnTransformer()Creates an instance of ColumnTransformer class.
-
-
Method Details
-
fields
Get the fields property: Fields to apply transformer logic on.- Returns:
- the fields value.
-
withFields
Set the fields property: Fields to apply transformer logic on.- Parameters:
fields- the fields value to set.- Returns:
- the ColumnTransformer object itself.
-
parameters
Get the parameters property: Different properties to be passed to transformer. Input expected is dictionary of key,value pairs in JSON format.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Different properties to be passed to transformer. Input expected is dictionary of key,value pairs in JSON format.- Parameters:
parameters- the parameters value to set.- Returns:
- the ColumnTransformer object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ColumnTransformer>- Throws:
IOException
-
fromJson
Reads an instance of ColumnTransformer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ColumnTransformer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ColumnTransformer.
-