public class HadoopRenameFileCommitter extends Object implements HadoopFileCommitter
| 构造器和说明 |
|---|
HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath) |
HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath,
org.apache.hadoop.fs.Path inProgressPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
commit()
Commits the in-progress file to the target path.
|
void |
commitAfterRecovery()
Re-commits the in-progress file to the target path after fail-over.
|
org.apache.hadoop.fs.Path |
getTargetFilePath()
Gets the target path to commit to.
|
org.apache.hadoop.fs.Path |
getTempFilePath()
Gets the path of the intermediate file to commit.
|
void |
preCommit()
Prepares the intermediates file for committing.
|
public HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath)
throws IOException
IOExceptionpublic HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath,
org.apache.hadoop.fs.Path inProgressPath)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getTargetFilePath()
HadoopFileCommittergetTargetFilePath 在接口中 HadoopFileCommitterpublic org.apache.hadoop.fs.Path getTempFilePath()
HadoopFileCommittergetTempFilePath 在接口中 HadoopFileCommitterpublic void preCommit()
HadoopFileCommitterpreCommit 在接口中 HadoopFileCommitterpublic void commit()
throws IOException
HadoopFileCommittercommit 在接口中 HadoopFileCommitterIOExceptionpublic void commitAfterRecovery()
throws IOException
HadoopFileCommittercommitAfterRecovery 在接口中 HadoopFileCommitterIOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.