Class HadoopOutputFile

  • All Implemented Interfaces:
    OutputFile

    public class HadoopOutputFile
    extends java.lang.Object
    implements OutputFile
    OutputFile implementation using the Hadoop FileSystem API.
    • Method Detail

      • fromLocation

        public static OutputFile fromLocation​(java.lang.CharSequence location,
                                              org.apache.hadoop.conf.Configuration conf)
      • fromLocation

        public static OutputFile fromLocation​(java.lang.CharSequence location,
                                              org.apache.hadoop.fs.FileSystem fs)
      • fromPath

        public static OutputFile fromPath​(org.apache.hadoop.fs.Path path,
                                          org.apache.hadoop.conf.Configuration conf)
      • fromPath

        public static OutputFile fromPath​(org.apache.hadoop.fs.Path path,
                                          org.apache.hadoop.fs.FileSystem fs)
      • fromPath

        public static OutputFile fromPath​(org.apache.hadoop.fs.Path path,
                                          org.apache.hadoop.fs.FileSystem fs,
                                          org.apache.hadoop.conf.Configuration conf)
      • getPath

        public org.apache.hadoop.fs.Path getPath()
      • getConf

        public org.apache.hadoop.conf.Configuration getConf()
      • getFileSystem

        public org.apache.hadoop.fs.FileSystem getFileSystem()
      • location

        public java.lang.String location()
        Description copied from interface: OutputFile
        Return the location this output file will create.
        Specified by:
        location in interface OutputFile
        Returns:
        the location of this output file
      • toInputFile

        public InputFile toInputFile()
        Description copied from interface: OutputFile
        Return an InputFile for the location of this output file.
        Specified by:
        toInputFile in interface OutputFile
        Returns:
        an input file for the location of this output file
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object