MapperAttributeMapping Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.MapperAttributeMapping

Implements

public final class MapperAttributeMapping
implements JsonSerializable<MapperAttributeMapping>

Source and target column mapping details.

Constructor Summary

Constructor Description
MapperAttributeMapping()

Creates an instance of MapperAttributeMapping class.

Method Summary

Modifier and Type Method and Description
MapperAttributeReference attributeReference()

Get the attributeReference property: Reference of the source column used in the mapping.

List<MapperAttributeReference> attributeReferences()

Get the attributeReferences property: List of references for source columns.

String expression()

Get the expression property: Expression used for 'Aggregate' and 'Derived' type mapping.

static MapperAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of MapperAttributeMapping from the JsonReader.

String functionName()

Get the functionName property: Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.

String name()

Get the name property: Name of the target column.

JsonWriter toJson(JsonWriter jsonWriter)
MappingType type()

Get the type property: Type of the CDC attribute mapping.

void validate()

Validates the instance.

MapperAttributeMapping withAttributeReference(MapperAttributeReference attributeReference)

Set the attributeReference property: Reference of the source column used in the mapping.

MapperAttributeMapping withAttributeReferences(List<MapperAttributeReference> attributeReferences)

Set the attributeReferences property: List of references for source columns.

MapperAttributeMapping withExpression(String expression)

Set the expression property: Expression used for 'Aggregate' and 'Derived' type mapping.

MapperAttributeMapping withFunctionName(String functionName)

Set the functionName property: Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.

MapperAttributeMapping withName(String name)

Set the name property: Name of the target column.

MapperAttributeMapping 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:

the attributeReference value.

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:

the attributeReferences value.

expression

public String expression()

Get the expression property: Expression used for 'Aggregate' and 'Derived' type mapping.

Returns:

the expression value.

fromJson

public static MapperAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of MapperAttributeMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MapperAttributeMapping 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 MapperAttributeMapping.

functionName

public String functionName()

Get the functionName property: Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.

Returns:

the functionName value.

name

public String name()

Get the name property: Name of the target column.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public MappingType type()

Get the type property: Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.

Returns:

the type value.

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:

attributeReference - the attributeReference value to set.

Returns:

the MapperAttributeMapping object itself.

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:

attributeReferences - the attributeReferences value to set.

Returns:

the MapperAttributeMapping object itself.

withExpression

public MapperAttributeMapping withExpression(String expression)

Set the expression property: Expression used for 'Aggregate' and 'Derived' type mapping.

Parameters:

expression - the expression value to set.

Returns:

the MapperAttributeMapping object itself.

withFunctionName

public MapperAttributeMapping withFunctionName(String functionName)

Set the functionName property: Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.

Parameters:

functionName - the functionName value to set.

Returns:

the MapperAttributeMapping object itself.

withName

public MapperAttributeMapping withName(String name)

Set the name property: Name of the target column.

Parameters:

name - the name value to set.

Returns:

the MapperAttributeMapping object itself.

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:

type - the type value to set.

Returns:

the MapperAttributeMapping object itself.

Applies to