FieldMappingFunction Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. FieldMappingFunction
- com.
Implements
public final class FieldMappingFunction
implements JsonSerializable<FieldMappingFunction>
Represents a function that transforms a value from a data source before indexing.
Constructor Summary
Constructor | Description |
---|---|
FieldMappingFunction(String name) |
Creates an instance of Field |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Field |
fromJson(JsonReader jsonReader)
Reads an instance of Field |
String |
getName()
Get the name property: The name of the field mapping function. |
Map<String,Object> |
getParameters()
Get the parameters property: A dictionary of parameter name/value pairs to pass to the function. |
Field |
setParameters(Map<String,Object> parameters)
Set the parameters property: A dictionary of parameter name/value pairs to pass to the function. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
FieldMappingFunction
public FieldMappingFunction(String name)
Creates an instance of FieldMappingFunction class.
Parameters:
Method Details
fromJson
public static FieldMappingFunction fromJson(JsonReader jsonReader)
Reads an instance of FieldMappingFunction from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: The name of the field mapping function.
Returns:
getParameters
public Map
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:
setParameters
public FieldMappingFunction setParameters(Map
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:
Returns:
toJson
Applies to
Azure SDK for Java