public class DefaultHadoopFileCommitterFactory extends Object implements HadoopFileCommitterFactory
HadoopRenameFileCommitter.| Constructor and Description |
|---|
DefaultHadoopFileCommitterFactory() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface 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 in interface HadoopFileCommitterFactoryconfiguration - The hadoop configuration.targetFilePath - The target path to commit to.tempFilePath - The path of the remaining pending file.IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.