Package org.apache.iceberg.data
Class GenericAppenderFactory
java.lang.Object
org.apache.iceberg.data.GenericAppenderFactory
- All Implemented Interfaces:
- FileAppenderFactory<Record>
Factory to create a new 
FileAppender to write Records.- 
Constructor SummaryConstructorsConstructorDescriptionGenericAppenderFactory(Schema schema) GenericAppenderFactory(Schema schema, PartitionSpec spec) GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) GenericAppenderFactory(Table table, Schema schema, PartitionSpec spec, Map<String, String> config, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) Constructor for GenericAppenderFactory.
- 
Method SummaryModifier and TypeMethodDescriptionnewAppender(EncryptedOutputFile encryptedOutputFile, FileFormat fileFormat) Create a newFileAppender.newAppender(OutputFile outputFile, FileFormat fileFormat) Create a newFileAppender.newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Create a newDataWriter.newEqDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Create a newEqualityDeleteWriter.newPosDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Create a newPositionDeleteWriter.
- 
Constructor Details- 
GenericAppenderFactory
- 
GenericAppenderFactory
- 
GenericAppenderFactorypublic GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) 
- 
GenericAppenderFactorypublic GenericAppenderFactory(Table table, Schema schema, PartitionSpec spec, Map<String, String> config, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) Constructor for GenericAppenderFactory.- Parameters:
- table- iceberg table
- schema- the schema of the records to write
- spec- the partition spec of the records
- config- the configuration for the writer
- equalityFieldIds- the field ids for equality delete
- eqDeleteRowSchema- the schema for equality delete rows
- posDeleteRowSchema- the schema for position delete rows
 
 
- 
- 
Method Details- 
set
- 
setAll
- 
newAppenderDescription copied from interface:FileAppenderFactoryCreate a newFileAppender.- Specified by:
- newAppenderin interface- FileAppenderFactory<Record>
- Parameters:
- outputFile- an OutputFile used to create an output stream.
- fileFormat- File format.
- Returns:
- a newly created FileAppender
 
- 
newAppenderpublic FileAppender<Record> newAppender(EncryptedOutputFile encryptedOutputFile, FileFormat fileFormat) Description copied from interface:FileAppenderFactoryCreate a newFileAppender.- Specified by:
- newAppenderin interface- FileAppenderFactory<Record>
- Parameters:
- encryptedOutputFile- an EncryptedOutputFile used to create an output stream.
- fileFormat- File format.
- Returns:
- a newly created FileAppender
 
- 
newDataWriterpublic DataWriter<Record> newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Description copied from interface:FileAppenderFactoryCreate a newDataWriter.- Specified by:
- newDataWriterin interface- FileAppenderFactory<Record>
- Parameters:
- file- an OutputFile used to create an output stream.
- format- a file format
- partition- a tuple of partition values
- Returns:
- a newly created DataWriterfor rows
 
- 
newEqDeleteWriterpublic EqualityDeleteWriter<Record> newEqDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Description copied from interface:FileAppenderFactoryCreate a newEqualityDeleteWriter.- Specified by:
- newEqDeleteWriterin interface- FileAppenderFactory<Record>
- Parameters:
- file- an OutputFile used to create an output stream.
- format- a file format
- partition- a tuple of partition values
- Returns:
- a newly created EqualityDeleteWriterfor equality deletes
 
- 
newPosDeleteWriterpublic PositionDeleteWriter<Record> newPosDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Description copied from interface:FileAppenderFactoryCreate a newPositionDeleteWriter.- Specified by:
- newPosDeleteWriterin interface- FileAppenderFactory<Record>
- Parameters:
- file- an OutputFile used to create an output stream.
- format- a file format
- partition- a tuple of partition values
- Returns:
- a newly created PositionDeleteWriterfor position deletes
 
 
-