Class FieldMappingFunction
java.lang.Object
com.azure.search.documents.indexes.models.FieldMappingFunction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FieldMappingFunction>
public final class FieldMappingFunction
extends Object
implements com.azure.json.JsonSerializable<FieldMappingFunction>
Represents a function that transforms a value from a data source before indexing.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldMappingFunction(String name) Creates an instance of FieldMappingFunction class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldMappingFunctionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FieldMappingFunction from the JsonReader.getName()Get the name property: The name of the field mapping function.Get the parameters property: A dictionary of parameter name/value pairs to pass to the function.setParameters(Map<String, Object> parameters) Set the parameters property: A dictionary of parameter name/value pairs to pass to the function.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
-
FieldMappingFunction
Creates an instance of FieldMappingFunction class.- Parameters:
name- the name value to set.
-
-
Method Details
-
getName
Get the name property: The name of the field mapping function.- Returns:
- the name value.
-
getParameters
Get the parameters property: A dictionary of parameter name/value pairs to pass to the function. Each value must be of a primitive type.- Returns:
- the parameters value.
-
setParameters
Set the parameters property: A dictionary of parameter name/value pairs to pass to the function. Each value must be of a primitive type.- Parameters:
parameters- the parameters value to set.- Returns:
- the FieldMappingFunction object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FieldMappingFunction>- Throws:
IOException
-
fromJson
public static FieldMappingFunction fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FieldMappingFunction from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FieldMappingFunction if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the FieldMappingFunction.
-