@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.
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
CompactingFileWriter.Type
Enum defining the types of
CompactingFileWriter. |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2023 The Apache Software Foundation. All rights reserved.