Interface BucketWriter.PendingFile
-
- Enclosing interface:
- BucketWriter<IN,BucketID>
public static interface BucketWriter.PendingFileThis represents the file that can not write any data to.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommit()Commits the pending file, making it visible.voidcommitAfterRecovery()Commits the pending file, making it visible.
-
-
-
Method Detail
-
commit
void commit() throws IOExceptionCommits the pending file, making it visible. The file will contain the exact data as when the pending file was created.- Throws:
IOException- Thrown if committing fails.
-
commitAfterRecovery
void commitAfterRecovery() throws IOExceptionCommits the pending file, making it visible. The file will contain the exact data as when the pending file was created.This method tolerates situations where the file was already committed and will not raise an exception in that case. This is important for idempotent commit retries as they need to happen after recovery.
- Throws:
IOException- Thrown if committing fails.
-
-