Class AvroWriteSettings
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.FormatWriteSettings
-
- com.azure.resourcemanager.datafactory.models.AvroWriteSettings
-
public final class AvroWriteSettings extends FormatWriteSettings
Avro write settings.
-
-
Constructor Summary
Constructors Constructor Description AvroWriteSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
fileNamePrefix()
Get the fileNamePrefix property: Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions.Object
maxRowsPerFile()
Get the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified count.String
recordName()
Get the recordName property: Top level record name in write result, which is required in AVRO spec.String
recordNamespace()
Get the recordNamespace property: Record namespace in the write result.void
validate()
Validates the instance.AvroWriteSettings
withFileNamePrefix(Object fileNamePrefix)
Set the fileNamePrefix property: Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions.AvroWriteSettings
withMaxRowsPerFile(Object maxRowsPerFile)
Set the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified count.AvroWriteSettings
withRecordName(String recordName)
Set the recordName property: Top level record name in write result, which is required in AVRO spec.AvroWriteSettings
withRecordNamespace(String recordNamespace)
Set the recordNamespace property: Record namespace in the write result.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.FormatWriteSettings
additionalProperties, withAdditionalProperties
-
-
-
-
Method Detail
-
recordName
public String recordName()
Get the recordName property: Top level record name in write result, which is required in AVRO spec.- Returns:
- the recordName value.
-
withRecordName
public AvroWriteSettings withRecordName(String recordName)
Set the recordName property: Top level record name in write result, which is required in AVRO spec.- Parameters:
recordName
- the recordName value to set.- Returns:
- the AvroWriteSettings object itself.
-
recordNamespace
public String recordNamespace()
Get the recordNamespace property: Record namespace in the write result.- Returns:
- the recordNamespace value.
-
withRecordNamespace
public AvroWriteSettings withRecordNamespace(String recordNamespace)
Set the recordNamespace property: Record namespace in the write result.- Parameters:
recordNamespace
- the recordNamespace value to set.- Returns:
- the AvroWriteSettings object itself.
-
maxRowsPerFile
public Object maxRowsPerFile()
Get the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).- Returns:
- the maxRowsPerFile value.
-
withMaxRowsPerFile
public AvroWriteSettings withMaxRowsPerFile(Object maxRowsPerFile)
Set the maxRowsPerFile property: Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).- Parameters:
maxRowsPerFile
- the maxRowsPerFile value to set.- Returns:
- the AvroWriteSettings object itself.
-
fileNamePrefix
public Object fileNamePrefix()
Get the fileNamePrefix property: Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).- Returns:
- the fileNamePrefix value.
-
withFileNamePrefix
public AvroWriteSettings withFileNamePrefix(Object fileNamePrefix)
Set the fileNamePrefix property: Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).- Parameters:
fileNamePrefix
- the fileNamePrefix value to set.- Returns:
- the AvroWriteSettings object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classFormatWriteSettings
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-