public abstract class PartitionedWriter<T> extends BaseTaskWriter<T>
BaseTaskWriter.BaseEqualityDeltaWriter, BaseTaskWriter.RollingEqDeleteWriter, BaseTaskWriter.RollingFileWriter| Modifier | Constructor and Description | 
|---|---|
| protected  | PartitionedWriter(PartitionSpec spec,
                 FileFormat format,
                 FileAppenderFactory<T> appenderFactory,
                 OutputFileFactory fileFactory,
                 FileIO io,
                 long targetFileSize) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| protected abstract PartitionKey | partition(T row)Create a PartitionKey from the values in row. | 
| void | write(T row)Write the row into the data files. | 
abort, complete, specclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataFilesprotected PartitionedWriter(PartitionSpec spec, FileFormat format, FileAppenderFactory<T> appenderFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSize)
protected abstract PartitionKey partition(T row)
Any PartitionKey returned by this method can be reused by the implementation.
row - a data rowpublic void write(T row) throws java.io.IOException
TaskWriterjava.io.IOExceptionpublic void close()
           throws java.io.IOException
java.io.IOException