Package org.apache.iceberg.data
Class GenericAppenderFactory
java.lang.Object
org.apache.iceberg.data.GenericAppenderFactory
- All Implemented Interfaces:
FileAppenderFactory<Record>
@Deprecated
public class GenericAppenderFactory
extends Object
implements FileAppenderFactory<Record>
Deprecated.
Factory to create a new
FileAppender to write Records.-
Constructor Summary
ConstructorsConstructorDescriptionGenericAppenderFactory(Schema schema) Deprecated.GenericAppenderFactory(Schema schema, PartitionSpec spec) Deprecated.GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema) Deprecated.Constructor for GenericAppenderFactory.GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) Deprecated.GenericAppenderFactory(Table table, Schema schema, PartitionSpec spec, Map<String, String> config, int[] equalityFieldIds, Schema eqDeleteRowSchema) Deprecated.Constructor for GenericAppenderFactory.GenericAppenderFactory(Table table, Schema schema, PartitionSpec spec, Map<String, String> config, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) Deprecated.This constructor is deprecated as of version 1.11.0 and will be removed in 1.12.0. -
Method Summary
Modifier and TypeMethodDescriptionnewAppender(EncryptedOutputFile encryptedOutputFile, FileFormat fileFormat) Deprecated.Create a newFileAppender.newAppender(OutputFile outputFile, FileFormat fileFormat) Deprecated.Create a newFileAppender.newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Deprecated.Create a newDataWriter.newEqDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Deprecated.Create a newEqualityDeleteWriter.newPosDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Deprecated.Create a newPositionDeleteWriter.Deprecated.Deprecated.
-
Constructor Details
-
GenericAppenderFactory
Deprecated. -
GenericAppenderFactory
Deprecated. -
GenericAppenderFactory
public GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) Deprecated. -
GenericAppenderFactory
public GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema) Deprecated.Constructor for GenericAppenderFactory.- Parameters:
schema- the schema of the records to writespec- the partition spec of the recordsequalityFieldIds- the field ids for equality deleteeqDeleteRowSchema- the schema for equality delete rows
-
GenericAppenderFactory
public GenericAppenderFactory(Table table, Schema schema, PartitionSpec spec, Map<String, String> config, int[] equalityFieldIds, Schema eqDeleteRowSchema) Deprecated.Constructor for GenericAppenderFactory.- Parameters:
table- iceberg tableschema- the schema of the records to writespec- the partition spec of the recordsconfig- the configuration for the writerequalityFieldIds- the field ids for equality deleteeqDeleteRowSchema- the schema for equality delete rows
-
GenericAppenderFactory
@Deprecated public GenericAppenderFactory(Table table, Schema schema, PartitionSpec spec, Map<String, String> config, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema) Deprecated.This constructor is deprecated as of version 1.11.0 and will be removed in 1.12.0. Position deletes that include row data are no longer supported. UseGenericAppenderFactory(Table, Schema, PartitionSpec, Map, int[], Schema)instead.Constructor for GenericAppenderFactory.- Parameters:
table- iceberg tableschema- the schema of the records to writespec- the partition spec of the recordsconfig- the configuration for the writerequalityFieldIds- the field ids for equality deleteeqDeleteRowSchema- the schema for equality delete rowsposDeleteRowSchema- the schema for position delete rows
-
-
Method Details
-
set
Deprecated. -
setAll
Deprecated. -
newAppender
Deprecated.Description copied from interface:FileAppenderFactoryCreate a newFileAppender.- Specified by:
newAppenderin interfaceFileAppenderFactory<Record>- Parameters:
outputFile- an OutputFile used to create an output stream.fileFormat- File format.- Returns:
- a newly created
FileAppender
-
newAppender
public FileAppender<Record> newAppender(EncryptedOutputFile encryptedOutputFile, FileFormat fileFormat) Deprecated.Description copied from interface:FileAppenderFactoryCreate a newFileAppender.- Specified by:
newAppenderin interfaceFileAppenderFactory<Record>- Parameters:
encryptedOutputFile- an EncryptedOutputFile used to create an output stream.fileFormat- File format.- Returns:
- a newly created
FileAppender
-
newDataWriter
public DataWriter<Record> newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Deprecated.Description copied from interface:FileAppenderFactoryCreate a newDataWriter.- Specified by:
newDataWriterin interfaceFileAppenderFactory<Record>- Parameters:
file- an OutputFile used to create an output stream.format- a file formatpartition- a tuple of partition values- Returns:
- a newly created
DataWriterfor rows
-
newEqDeleteWriter
public EqualityDeleteWriter<Record> newEqDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Deprecated.Description copied from interface:FileAppenderFactoryCreate a newEqualityDeleteWriter.- Specified by:
newEqDeleteWriterin interfaceFileAppenderFactory<Record>- Parameters:
file- an OutputFile used to create an output stream.format- a file formatpartition- a tuple of partition values- Returns:
- a newly created
EqualityDeleteWriterfor equality deletes
-
newPosDeleteWriter
public PositionDeleteWriter<Record> newPosDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition) Deprecated.Description copied from interface:FileAppenderFactoryCreate a newPositionDeleteWriter.- Specified by:
newPosDeleteWriterin interfaceFileAppenderFactory<Record>- Parameters:
file- an OutputFile used to create an output stream.format- a file formatpartition- a tuple of partition values- Returns:
- a newly created
PositionDeleteWriterfor position deletes
-
GenericFileWriterFactoryinstead.