public class GenericAppenderFactory extends java.lang.Object implements FileAppenderFactory<Record>
FileAppender
to write Record
s.Constructor and Description |
---|
GenericAppenderFactory(Schema schema) |
GenericAppenderFactory(Schema schema,
PartitionSpec spec) |
GenericAppenderFactory(Schema schema,
PartitionSpec spec,
int[] equalityFieldIds,
Schema eqDeleteRowSchema,
Schema posDeleteRowSchema) |
Modifier and Type | Method and Description |
---|---|
FileAppender<Record> |
newAppender(OutputFile outputFile,
FileFormat fileFormat)
Create a new
FileAppender . |
DataWriter<Record> |
newDataWriter(EncryptedOutputFile file,
FileFormat format,
StructLike partition)
Create a new
DataWriter . |
EqualityDeleteWriter<Record> |
newEqDeleteWriter(EncryptedOutputFile file,
FileFormat format,
StructLike partition)
Create a new
EqualityDeleteWriter . |
PositionDeleteWriter<Record> |
newPosDeleteWriter(EncryptedOutputFile file,
FileFormat format,
StructLike partition)
Create a new
PositionDeleteWriter . |
GenericAppenderFactory |
set(java.lang.String property,
java.lang.String value) |
GenericAppenderFactory |
setAll(java.util.Map<java.lang.String,java.lang.String> properties) |
public GenericAppenderFactory(Schema schema)
public GenericAppenderFactory(Schema schema, PartitionSpec spec)
public GenericAppenderFactory(Schema schema, PartitionSpec spec, int[] equalityFieldIds, Schema eqDeleteRowSchema, Schema posDeleteRowSchema)
public GenericAppenderFactory set(java.lang.String property, java.lang.String value)
public GenericAppenderFactory setAll(java.util.Map<java.lang.String,java.lang.String> properties)
public FileAppender<Record> newAppender(OutputFile outputFile, FileFormat fileFormat)
FileAppenderFactory
FileAppender
.newAppender
in interface FileAppenderFactory<Record>
outputFile
- an OutputFile used to create an output stream.fileFormat
- File format.FileAppender
public DataWriter<Record> newDataWriter(EncryptedOutputFile file, FileFormat format, StructLike partition)
FileAppenderFactory
DataWriter
.newDataWriter
in interface FileAppenderFactory<Record>
file
- an OutputFile used to create an output stream.format
- a file formatpartition
- a tuple of partition valuesDataWriter
for rowspublic EqualityDeleteWriter<Record> newEqDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition)
FileAppenderFactory
EqualityDeleteWriter
.newEqDeleteWriter
in interface FileAppenderFactory<Record>
file
- an OutputFile used to create an output stream.format
- a file formatpartition
- a tuple of partition valuesEqualityDeleteWriter
for equality deletespublic PositionDeleteWriter<Record> newPosDeleteWriter(EncryptedOutputFile file, FileFormat format, StructLike partition)
FileAppenderFactory
PositionDeleteWriter
.newPosDeleteWriter
in interface FileAppenderFactory<Record>
file
- an OutputFile used to create an output stream.format
- a file formatpartition
- a tuple of partition valuesPositionDeleteWriter
for position deletes