Package org.apache.iceberg.io
Class BaseTaskWriter<T>
java.lang.Object
org.apache.iceberg.io.BaseTaskWriter<T>
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- TaskWriter<T>
- Direct Known Subclasses:
- PartitionedFanoutWriter,- PartitionedWriter,- UnpartitionedWriter
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classBase equality delta writer to write both insert records and equality-deletes.protected classprotected class
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedBaseTaskWriter(PartitionSpec spec, FileFormat format, FileAppenderFactory<T> appenderFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSize) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidabort()Close the writer and delete the completed files if possible when aborting.complete()Close the writer and get the completed data and delete files.protected voidsetFailure(Throwable throwable) protected PartitionSpecspec()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.io.TaskWriterdataFiles, write
- 
Constructor Details- 
BaseTaskWriterprotected BaseTaskWriter(PartitionSpec spec, FileFormat format, FileAppenderFactory<T> appenderFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSize) 
 
- 
- 
Method Details- 
spec
- 
setFailure
- 
abortDescription copied from interface:TaskWriterClose the writer and delete the completed files if possible when aborting.- Specified by:
- abortin interface- TaskWriter<T>
- Throws:
- IOException- if any IO error happen.
 
- 
completeDescription copied from interface:TaskWriterClose the writer and get the completed data and delete files.- Specified by:
- completein interface- TaskWriter<T>
- Returns:
- the completed data and delete files of this task writer.
- Throws:
- IOException
 
 
-