public class Utils extends Object
| Constructor and Description | 
|---|
Utils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
exists(org.apache.hadoop.mapreduce.JobContext job,
      org.apache.hadoop.fs.FileSystem fs,
      org.apache.hadoop.fs.Path inputPath)  | 
static Map<String,Object> | 
getStats(org.apache.hadoop.mapreduce.JobContext job,
        org.apache.hadoop.fs.Path statsPath)  | 
static OutputStream | 
makePathAndOutputStream(org.apache.hadoop.mapreduce.JobContext job,
                       org.apache.hadoop.fs.Path outputPath,
                       boolean deleteExisting)  | 
static InputStream | 
openInputStream(org.apache.hadoop.mapreduce.JobContext job,
               org.apache.hadoop.fs.Path inputPath)  | 
static InputStream | 
openInputStream(org.apache.hadoop.mapreduce.JobContext job,
               org.apache.hadoop.fs.Path inputPath,
               org.apache.hadoop.fs.FileSystem fileSystem)  | 
static void | 
storeStats(org.apache.hadoop.mapreduce.JobContext job,
          org.apache.hadoop.fs.Path path,
          Map<String,Object> stats)  | 
public static OutputStream makePathAndOutputStream(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path outputPath, boolean deleteExisting) throws IOException
IOExceptionpublic static InputStream openInputStream(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path inputPath) throws IOException
IOExceptionpublic static boolean exists(org.apache.hadoop.mapreduce.JobContext job,
                             org.apache.hadoop.fs.FileSystem fs,
                             org.apache.hadoop.fs.Path inputPath)
                      throws IOException
IOExceptionpublic static InputStream openInputStream(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path inputPath, org.apache.hadoop.fs.FileSystem fileSystem) throws IOException
IOExceptionpublic static Map<String,Object> getStats(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path statsPath) throws IOException
IOExceptionpublic static void storeStats(org.apache.hadoop.mapreduce.JobContext job,
                              org.apache.hadoop.fs.Path path,
                              Map<String,Object> stats)
                       throws IOException
IOExceptionCopyright © 2011–2018. All rights reserved.