public class PartitionedAppendWriter extends PartitionedFanoutWriter<Record>
BaseTaskWriter.BaseEqualityDeltaWriter, BaseTaskWriter.RollingEqDeleteWriter, BaseTaskWriter.RollingFileWriter
Constructor and Description |
---|
PartitionedAppendWriter(PartitionSpec spec,
FileFormat format,
FileAppenderFactory<Record> appenderFactory,
OutputFileFactory fileFactory,
FileIO io,
long targetFileSize,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
protected PartitionKey |
partition(Record row)
Create a PartitionKey from the values in row.
|
close, write
abort, complete, setFailure, spec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataFiles
public PartitionedAppendWriter(PartitionSpec spec, FileFormat format, FileAppenderFactory<Record> appenderFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSize, Schema schema)
protected PartitionKey partition(Record row)
PartitionedFanoutWriter
Any PartitionKey returned by this method can be reused by the implementation.
partition
in class PartitionedFanoutWriter<Record>
row
- a data row