public class TempFileUtil extends Object
Constructor and Description |
---|
TempFileUtil() |
Modifier and Type | Method and Description |
---|---|
static File |
makeBinary(int length) |
static File |
makeTestFile() |
static File |
makeTestFile(File baseDir) |
static File |
makeTestFile(String name,
int size) |
static File |
makeTestFile(String name,
int size,
File baseDir) |
static void |
writeASinkFile(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fileSys,
org.apache.hadoop.fs.Path dest,
int chunks) |
public static File makeBinary(int length) throws IOException
IOException
public static void writeASinkFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fileSys, org.apache.hadoop.fs.Path dest, int chunks) throws IOException
IOException
public static File makeTestFile(String name, int size, File baseDir) throws IOException
IOException
public static File makeTestFile(String name, int size) throws IOException
IOException
public static File makeTestFile(File baseDir) throws IOException
IOException
public static File makeTestFile() throws IOException
IOException
Copyright © 2016 Apache Software Foundation. All Rights Reserved.