public final class AvroWriteSettings extends FormatWriteSettings
| Constructor and Description |
|---|
AvroWriteSettings() |
| Modifier and Type | Method and 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.
|
additionalProperties, withAdditionalPropertiespublic String recordName()
public AvroWriteSettings withRecordName(String recordName)
recordName - the recordName value to set.public String recordNamespace()
public AvroWriteSettings withRecordNamespace(String recordNamespace)
recordNamespace - the recordNamespace value to set.public Object maxRowsPerFile()
public AvroWriteSettings withMaxRowsPerFile(Object maxRowsPerFile)
maxRowsPerFile - the maxRowsPerFile value to set.public Object fileNamePrefix()
public AvroWriteSettings withFileNamePrefix(Object fileNamePrefix)
fileNamePrefix - the fileNamePrefix value to set.public void validate()
validate in class FormatWriteSettingsIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.