public class StreamUtil extends Object
构造器和说明 |
---|
StreamUtil() |
限定符和类型 | 方法和说明 |
---|---|
static String |
collate(List args,
String sep) |
static String |
collate(Object[] args,
String sep) |
static String |
dfmt(double d) |
static String |
findInClasspath(String className) |
static String |
findInClasspath(String className,
ClassLoader loader) |
static String |
formatBytes(long numBytes) |
static String |
formatBytes2(long numBytes) |
static String |
getBoundAntProperty(String name,
String defaultVal) |
static FileSplit |
getCurrentSplit(JobConf job) |
static String |
getSpace(int len) |
static org.apache.hadoop.streaming.StreamUtil.TaskId |
getTaskInfo(JobConf job) |
static Class |
goodClassOrNull(Configuration conf,
String className,
String defaultPackage)
It may seem strange to silently switch behaviour when a String
is not a classname; the reason is simplified Usage:
-mapper [classname | program ]
instead of the explicit Usage:
[-mapper program | -javamapper classname], -mapper and -javamapper are mutually exclusive.
|
static String |
ifmt(double d) |
static boolean |
isCygwin() |
static boolean |
isLocalJobTracker(JobConf job) |
static String |
ljustify(String s,
int width) |
static String |
localizeBin(String path) |
static String |
makeJavaCommand(Class main,
String[] argv) |
static String |
regexpEscape(String plain) |
static String |
rjustify(String s,
int width) |
static String |
safeGetCanonicalPath(File f) |
static void |
touch(File file) |
public static Class goodClassOrNull(Configuration conf, String className, String defaultPackage)
-mapper [classname | program ] instead of the explicit Usage: [-mapper program | -javamapper classname], -mapper and -javamapper are mutually exclusive. (repeat for -reducer, -combiner)
public static String findInClasspath(String className, ClassLoader loader)
public static String dfmt(double d)
public static String ifmt(double d)
public static String formatBytes(long numBytes)
public static String formatBytes2(long numBytes)
public static String getSpace(int len)
public static boolean isLocalJobTracker(JobConf job)
public static org.apache.hadoop.streaming.StreamUtil.TaskId getTaskInfo(JobConf job)
public static void touch(File file) throws IOException
IOException
public static boolean isCygwin()
Copyright © 2009 The Apache Software Foundation