@Deprecated public final class DFUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
elapsedTime(long milli)
Deprecated.
Formats a time interval in milliseconds to a String in the form "hours:minutes:seconds:millis"
|
static org.apache.hadoop.fs.Path[] |
listOutputFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path outputPath)
Deprecated.
Return a list of all files in the output directory
|
static double[] |
readDoubleArray(DataInput in)
Deprecated.
Reads a double[] from a DataInput
|
static int[] |
readIntArray(DataInput in)
Deprecated.
Reads an int[] from a DataInput
|
static Node[] |
readNodeArray(DataInput in)
Deprecated.
Reads a Node[] from a DataInput
|
static void |
storeString(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path,
String string)
Deprecated.
Write a string to a path.
|
static void |
storeWritable(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.io.Writable writable)
Deprecated.
|
static void |
writeArray(DataOutput out,
double[] array)
Deprecated.
Writes a double[] into a DataOutput
|
static void |
writeArray(DataOutput out,
int[] array)
Deprecated.
Writes an int[] into a DataOutput
|
static void |
writeArray(DataOutput out,
Node[] array)
Deprecated.
Writes an Node[] into a DataOutput
|
public static void writeArray(DataOutput out, Node[] array) throws IOException
IOException
public static Node[] readNodeArray(DataInput in) throws IOException
IOException
public static void writeArray(DataOutput out, double[] array) throws IOException
IOException
public static double[] readDoubleArray(DataInput in) throws IOException
IOException
public static void writeArray(DataOutput out, int[] array) throws IOException
IOException
public static int[] readIntArray(DataInput in) throws IOException
IOException
public static org.apache.hadoop.fs.Path[] listOutputFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path outputPath) throws IOException
IOException
- if no file is foundpublic static String elapsedTime(long milli)
public static void storeWritable(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path path, org.apache.hadoop.io.Writable writable) throws IOException
IOException
public static void storeString(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path path, String string) throws IOException
conf
- From which the file system will be pickedpath
- Where the string will be writtenstring
- The string to writeIOException
- if things go poorlyCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.