public final class HDFSTools extends Object
Modifier and Type | Method and Description |
---|---|
static void |
decompressFile(FileSystem fs,
String inFile,
String outFile,
boolean deletePrevious) |
static void |
decompressPath(FileSystem fs,
String in,
String out,
String compressedFileSuffix,
boolean deletePrevious) |
static List<Path> |
getAllFilePaths(FileSystem fs,
Path path,
PathFilter filter) |
static long |
getFileSize(FileSystem fs,
Path path,
PathFilter filter) |
static boolean |
globDelete(FileSystem fs,
String path,
boolean recursive) |
public static long getFileSize(FileSystem fs, Path path, PathFilter filter) throws IOException
IOException
public static List<Path> getAllFilePaths(FileSystem fs, Path path, PathFilter filter) throws IOException
IOException
public static void decompressPath(FileSystem fs, String in, String out, String compressedFileSuffix, boolean deletePrevious) throws IOException
IOException
public static void decompressFile(FileSystem fs, String inFile, String outFile, boolean deletePrevious) throws IOException
IOException
public static boolean globDelete(FileSystem fs, String path, boolean recursive) throws IOException
IOException
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.