Package org.apache.iceberg.data
Class GenericAppenderFactory
- java.lang.Object
- 
- org.apache.iceberg.data.GenericAppenderFactory
 
- 
- All Implemented Interfaces:
- FileAppenderFactory<Record>
 
 public class GenericAppenderFactory extends java.lang.Object implements FileAppenderFactory<Record> Factory to create a newFileAppenderto writeRecords.
- 
- 
Constructor SummaryConstructors Constructor Description GenericAppenderFactory(Schema schema)GenericAppenderFactory(Schema schema, PartitionSpec spec)GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FileAppender<Record>newAppender(OutputFile outputFile, FileFormat fileFormat)Create a newFileAppender.DataWriter<Record>newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition)Create a newDataWriter.EqualityDeleteWriter<Record>newEqDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition)Create a newEqualityDeleteWriter.PositionDeleteWriter<Record>newPosDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition)Create a newPositionDeleteWriter.GenericAppenderFactoryset(java.lang.String property, java.lang.String value)GenericAppenderFactorysetAll(java.util.Map<java.lang.String,java.lang.String> properties)
 
- 
- 
- 
Constructor Detail- 
GenericAppenderFactorypublic GenericAppenderFactory(Schema schema) 
 - 
GenericAppenderFactorypublic GenericAppenderFactory(Schema schema, PartitionSpec spec) 
 - 
GenericAppenderFactorypublic GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) 
 
- 
 - 
Method Detail- 
setpublic GenericAppenderFactory set(java.lang.String property, java.lang.String value) 
 - 
setAllpublic GenericAppenderFactory setAll(java.util.Map<java.lang.String,java.lang.String> properties) 
 - 
newAppenderpublic FileAppender<Record> newAppender(OutputFile outputFile, FileFormat fileFormat) Description 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
 
 - 
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
 
 
- 
 
-