MapperAttributeMapping Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. MapperAttributeMapping
- com.
Implements
public final class MapperAttributeMapping
implements JsonSerializable<MapperAttributeMapping>
Source and target column mapping details.
Constructor Summary
| Constructor | Description |
|---|---|
| MapperAttributeMapping() |
Creates an instance of Mapper |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Mapper |
attributeReference()
Get the attribute |
|
List<Mapper |
attributeReferences()
Get the attribute |
| String |
expression()
Get the expression property: Expression used for 'Aggregate' and 'Derived' type mapping. |
|
static
Mapper |
fromJson(JsonReader jsonReader)
Reads an instance of Mapper |
| String |
functionName()
Get the function |
| String |
name()
Get the name property: Name of the target column. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Mapping |
type()
Get the type property: Type of the CDC attribute mapping. |
| void |
validate()
Validates the instance. |
|
Mapper |
withAttributeReference(MapperAttributeReference attributeReference)
Set the attribute |
|
Mapper |
withAttributeReferences(List<MapperAttributeReference> attributeReferences)
Set the attribute |
|
Mapper |
withExpression(String expression)
Set the expression property: Expression used for 'Aggregate' and 'Derived' type mapping. |
|
Mapper |
withFunctionName(String functionName)
Set the function |
|
Mapper |
withName(String name)
Set the name property: Name of the target column. |
|
Mapper |
withType(MappingType type)
Set the type property: Type of the CDC attribute mapping. |
Methods inherited from java.lang.Object
Constructor Details
MapperAttributeMapping
public MapperAttributeMapping()
Creates an instance of MapperAttributeMapping class.
Method Details
attributeReference
public MapperAttributeReference attributeReference()
Get the attributeReference property: Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.
Returns:
attributeReferences
public List<MapperAttributeReference> attributeReferences()
Get the attributeReferences property: List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
Returns:
expression
public String expression()
Get the expression property: Expression used for 'Aggregate' and 'Derived' type mapping.
Returns:
fromJson
public static MapperAttributeMapping fromJson(JsonReader jsonReader)
Reads an instance of MapperAttributeMapping from the JsonReader.
Parameters:
Returns:
Throws:
functionName
public String functionName()
Get the functionName property: Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.
Returns:
name
public String name()
Get the name property: Name of the target column.
Returns:
toJson
type
public MappingType type()
Get the type property: Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
Returns:
validate
public void validate()
Validates the instance.
withAttributeReference
public MapperAttributeMapping withAttributeReference(MapperAttributeReference attributeReference)
Set the attributeReference property: Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.
Parameters:
Returns:
withAttributeReferences
public MapperAttributeMapping withAttributeReferences(List<MapperAttributeReference> attributeReferences)
Set the attributeReferences property: List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
Parameters:
Returns:
withExpression
public MapperAttributeMapping withExpression(String expression)
Set the expression property: Expression used for 'Aggregate' and 'Derived' type mapping.
Parameters:
Returns:
withFunctionName
public MapperAttributeMapping withFunctionName(String functionName)
Set the functionName property: Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.
Parameters:
Returns:
withName
public MapperAttributeMapping withName(String name)
Set the name property: Name of the target column.
Parameters:
Returns:
withType
public MapperAttributeMapping withType(MappingType type)
Set the type property: Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
Parameters:
Returns: