Class TabularTranslator
java.lang.Object
com.azure.resourcemanager.datafactory.models.CopyTranslator
com.azure.resourcemanager.datafactory.models.TabularTranslator
A copy activity tabular translator.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the collectionReference property: The JSON Path of the Nested Array that is going to do cross-apply.Get the columnMappings property: Column mappings.Get the mapComplexValuesToString property: Whether to map complex (array and object) values to simple strings in json format.mappings()
Get the mappings property: Column mappings with logical types.Get the schemaMapping property: The schema mapping to map between tabular data and hierarchical data.Get the typeConversion property: Whether to enable the advanced type conversion feature in the Copy activity.Get the typeConversionSettings property: Type conversion settings.void
validate()
Validates the instance.withCollectionReference
(Object collectionReference) Set the collectionReference property: The JSON Path of the Nested Array that is going to do cross-apply.withColumnMappings
(Object columnMappings) Set the columnMappings property: Column mappings.withMapComplexValuesToString
(Object mapComplexValuesToString) Set the mapComplexValuesToString property: Whether to map complex (array and object) values to simple strings in json format.withMappings
(Object mappings) Set the mappings property: Column mappings with logical types.withSchemaMapping
(Object schemaMapping) Set the schemaMapping property: The schema mapping to map between tabular data and hierarchical data.withTypeConversion
(Object typeConversion) Set the typeConversion property: Whether to enable the advanced type conversion feature in the Copy activity.withTypeConversionSettings
(TypeConversionSettings typeConversionSettings) Set the typeConversionSettings property: Type conversion settings.Methods inherited from class com.azure.resourcemanager.datafactory.models.CopyTranslator
additionalProperties, withAdditionalProperties
-
Constructor Details
-
TabularTranslator
public TabularTranslator()Creates an instance of TabularTranslator class.
-
-
Method Details
-
columnMappings
Get the columnMappings property: Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: string (or Expression with resultType string). This property will be retired. Please use mappings property.- Returns:
- the columnMappings value.
-
withColumnMappings
Set the columnMappings property: Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: string (or Expression with resultType string). This property will be retired. Please use mappings property.- Parameters:
columnMappings
- the columnMappings value to set.- Returns:
- the TabularTranslator object itself.
-
schemaMapping
Get the schemaMapping property: The schema mapping to map between tabular data and hierarchical data. Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", "Column3": "$.Column2.Property2"}. Type: object (or Expression with resultType object). This property will be retired. Please use mappings property.- Returns:
- the schemaMapping value.
-
withSchemaMapping
Set the schemaMapping property: The schema mapping to map between tabular data and hierarchical data. Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", "Column3": "$.Column2.Property2"}. Type: object (or Expression with resultType object). This property will be retired. Please use mappings property.- Parameters:
schemaMapping
- the schemaMapping value to set.- Returns:
- the TabularTranslator object itself.
-
collectionReference
Get the collectionReference property: The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression with resultType object).- Returns:
- the collectionReference value.
-
withCollectionReference
Set the collectionReference property: The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression with resultType object).- Parameters:
collectionReference
- the collectionReference value to set.- Returns:
- the TabularTranslator object itself.
-
mapComplexValuesToString
Get the mapComplexValuesToString property: Whether to map complex (array and object) values to simple strings in json format. Type: boolean (or Expression with resultType boolean).- Returns:
- the mapComplexValuesToString value.
-
withMapComplexValuesToString
Set the mapComplexValuesToString property: Whether to map complex (array and object) values to simple strings in json format. Type: boolean (or Expression with resultType boolean).- Parameters:
mapComplexValuesToString
- the mapComplexValuesToString value to set.- Returns:
- the TabularTranslator object itself.
-
mappings
Get the mappings property: Column mappings with logical types. Tabular->tabular example: [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. Hierarchical->tabular example: [{"source":{"path":"$" + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. Type: object (or Expression with resultType object).- Returns:
- the mappings value.
-
withMappings
Set the mappings property: Column mappings with logical types. Tabular->tabular example: [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}}" + ",{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. Hierarchical->tabular example: [{"source":{"path":"$" + ".CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$" + ".CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. Type: object (or Expression with resultType object).- Parameters:
mappings
- the mappings value to set.- Returns:
- the TabularTranslator object itself.
-
typeConversion
Get the typeConversion property: Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType boolean).- Returns:
- the typeConversion value.
-
withTypeConversion
Set the typeConversion property: Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType boolean).- Parameters:
typeConversion
- the typeConversion value to set.- Returns:
- the TabularTranslator object itself.
-
typeConversionSettings
Get the typeConversionSettings property: Type conversion settings.- Returns:
- the typeConversionSettings value.
-
withTypeConversionSettings
Set the typeConversionSettings property: Type conversion settings.- Parameters:
typeConversionSettings
- the typeConversionSettings value to set.- Returns:
- the TabularTranslator object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCopyTranslator
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-