public class DefaultHadoopFileCommitterFactory extends Object implements HadoopFileCommitterFactory
HadoopRenameFileCommitter.| 构造器和说明 |
|---|
DefaultHadoopFileCommitterFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
HadoopFileCommitter |
create(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath)
Creates a new Hadoop file committer for writing.
|
HadoopFileCommitter |
recoverForCommit(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath,
org.apache.hadoop.fs.Path tempFilePath)
Creates a Hadoop file committer for commit the pending file.
|
public HadoopFileCommitter create(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path targetFilePath) throws IOException
HadoopFileCommitterFactorycreate 在接口中 HadoopFileCommitterFactoryconfiguration - The hadoop configuration.targetFilePath - The target path to commit to.IOExceptionpublic HadoopFileCommitter recoverForCommit(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path targetFilePath, org.apache.hadoop.fs.Path tempFilePath) throws IOException
HadoopFileCommitterFactoryrecoverForCommit 在接口中 HadoopFileCommitterFactoryconfiguration - The hadoop configuration.targetFilePath - The target path to commit to.tempFilePath - The path of the remaining pending file.IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.