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
IOException
public static InputStream openInputStream(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path inputPath) throws IOException
IOException
public static boolean exists(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path inputPath) throws IOException
IOException
public static InputStream openInputStream(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path inputPath, org.apache.hadoop.fs.FileSystem fileSystem) throws IOException
IOException
public static Map<String,Object> getStats(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path statsPath) throws IOException
IOException
public static void storeStats(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path path, Map<String,Object> stats) throws IOException
IOException
Copyright © 2011–2015. All rights reserved.