Interface CompactingFileWriter
-
- All Known Subinterfaces:
InProgressFileWriter<IN,BucketID>,OutputStreamBasedCompactingFileWriter,RecordWiseCompactingFileWriter<IN>
- All Known Implementing Classes:
AbstractPartFileWriter,OutputStreamBasedPartFileWriter,RowWisePartWriter
@Internal public interface CompactingFileWriterThe file sink compactors use theCompactingFileWriterto write a compacting file.A class should not directly implement the
CompactingFileWriter, but to implement theRecordWiseCompactingFileWriter, or theOutputStreamBasedCompactingFileWriter, or both. If an class implements both interfaces, once the write method of either interface is called, the write method in the other one should be disabled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCompactingFileWriter.TypeEnum defining the types ofCompactingFileWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InProgressFileWriter.PendingFileRecoverablecloseForCommit()Closes the writer and gets theInProgressFileWriter.PendingFileRecoverableof the written compacting file.
-
-
-
Method Detail
-
closeForCommit
InProgressFileWriter.PendingFileRecoverable closeForCommit() throws IOException
Closes the writer and gets theInProgressFileWriter.PendingFileRecoverableof the written compacting file.- Returns:
- The state of the pending part file.
Bucketuses this to commit the pending file. - Throws:
IOException- Thrown if an I/O error occurs.
-
-