Interface CompactingFileWriter
- All Known Subinterfaces:
InProgressFileWriter<IN,,BucketID> OutputStreamBasedCompactingFileWriter,RecordWiseCompactingFileWriter<IN>
- All Known Implementing Classes:
AbstractPartFileWriter,OutputStreamBasedPartFileWriter,RowWisePartWriter
@Internal
public interface CompactingFileWriter
The file sink compactors use the
CompactingFileWriter to write a compacting file.
A class should not directly implement the CompactingFileWriter, but to implement the
RecordWiseCompactingFileWriter, or the OutputStreamBasedCompactingFileWriter, 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 ClassesModifier and TypeInterfaceDescriptionstatic enumEnum defining the types ofCompactingFileWriter. -
Method Summary
Modifier and TypeMethodDescriptionCloses the writer and gets theInProgressFileWriter.PendingFileRecoverableof the written compacting file.
-
Method Details
-
closeForCommit
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.
-