Interface HadoopFileCommitter
-
- All Known Implementing Classes:
HadoopRenameFileCommitter
@Internal public interface HadoopFileCommitterThe committer publishes an intermediate Hadoop file to the target path after it finishes writing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommit()Commits the in-progress file to the target path.voidcommitAfterRecovery()Re-commits the in-progress file to the target path after fail-over.org.apache.hadoop.fs.PathgetTargetFilePath()Gets the target path to commit to.org.apache.hadoop.fs.PathgetTempFilePath()Gets the path of the intermediate file to commit.voidpreCommit()Prepares the intermediates file for committing.
-
-
-
Method Detail
-
getTargetFilePath
org.apache.hadoop.fs.Path getTargetFilePath()
Gets the target path to commit to.- Returns:
- The target path to commit to.
-
getTempFilePath
org.apache.hadoop.fs.Path getTempFilePath()
Gets the path of the intermediate file to commit.- Returns:
- The path of the intermediate file to commit.
-
preCommit
void preCommit() throws IOExceptionPrepares the intermediates file for committing.- Throws:
IOException
-
commit
void commit() throws IOExceptionCommits the in-progress file to the target path.- Throws:
IOException
-
commitAfterRecovery
void commitAfterRecovery() throws IOExceptionRe-commits the in-progress file to the target path after fail-over.- Throws:
IOException
-
-