Class DefaultHadoopFileCommitterFactory

    • Constructor Detail

      • DefaultHadoopFileCommitterFactory

        public DefaultHadoopFileCommitterFactory()
    • Method Detail

      • create

        public HadoopFileCommitter create​(org.apache.hadoop.conf.Configuration configuration,
                                          org.apache.hadoop.fs.Path targetFilePath)
                                   throws IOException
        Description copied from interface: HadoopFileCommitterFactory
        Creates a new Hadoop file committer for writing.
        Specified by:
        create in interface HadoopFileCommitterFactory
        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: HadoopFileCommitterFactory
        Creates a Hadoop file committer for commit the pending file.
        Specified by:
        recoverForCommit in interface HadoopFileCommitterFactory
        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