Class DefaultHadoopFileCommitterFactory
- java.lang.Object
-
- org.apache.flink.formats.hadoop.bulk.DefaultHadoopFileCommitterFactory
-
- All Implemented Interfaces:
Serializable,HadoopFileCommitterFactory
public class DefaultHadoopFileCommitterFactory extends Object implements HadoopFileCommitterFactory
The default hadoop file committer factory which always useHadoopRenameFileCommitter.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultHadoopFileCommitterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HadoopFileCommittercreate(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path targetFilePath)Creates a new Hadoop file committer for writing.HadoopFileCommitterrecoverForCommit(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.
-
-
-
Method Detail
-
create
public HadoopFileCommitter create(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path targetFilePath) throws IOException
Description copied from interface:HadoopFileCommitterFactoryCreates a new Hadoop file committer for writing.- Specified by:
createin interfaceHadoopFileCommitterFactory- Parameters:
configuration- The hadoop configuration.targetFilePath- The target path to commit to.- Returns:
- The corresponding Hadoop file committer.
- Throws:
IOException
-
recoverForCommit
public HadoopFileCommitter recoverForCommit(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path targetFilePath, org.apache.hadoop.fs.Path tempFilePath) throws IOException
Description copied from interface:HadoopFileCommitterFactoryCreates a Hadoop file committer for commit the pending file.- Specified by:
recoverForCommitin interfaceHadoopFileCommitterFactory- Parameters:
configuration- The hadoop configuration.targetFilePath- The target path to commit to.tempFilePath- The path of the remaining pending file.- Returns:
- The corresponding Hadoop file committer.
- Throws:
IOException
-
-