@Internal public interface CompactingFileWriter
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.
Modifier and Type | Interface and Description |
---|---|
static class |
CompactingFileWriter.Type
Enum defining the types of
CompactingFileWriter . |
Modifier and Type | Method and Description |
---|---|
InProgressFileWriter.PendingFileRecoverable |
closeForCommit()
Closes the writer and gets the
InProgressFileWriter.PendingFileRecoverable of the written compacting file. |
InProgressFileWriter.PendingFileRecoverable closeForCommit() throws IOException
InProgressFileWriter.PendingFileRecoverable
of the written compacting file.Bucket
uses this to commit the pending
file.IOException
- Thrown if an I/O error occurs.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.