public final class Files extends Object
Modifier and Type | Method and Description |
---|---|
static void |
delete(FileSystem fs,
Path path) |
static FileSystem |
getFileSystem(String url,
Map<String,String> properties) |
static FileSystem |
getRawLocalFileSystem() |
static FSDataInputStream |
readWithBackup(FileSystem fs,
Path path) |
static void |
rename(FileSystem fs,
Path from,
Path to) |
static FileStatus |
stat(FileSystem fs,
Path path) |
static FSDataOutputStream |
writeWithBackup(FileSystem fs,
Path path) |
public static FileSystem getFileSystem(String url, Map<String,String> properties) throws IOException
IOException
public static FileSystem getRawLocalFileSystem()
@Nullable public static FSDataInputStream readWithBackup(FileSystem fs, Path path) throws IOException
IOException
public static FSDataOutputStream writeWithBackup(FileSystem fs, Path path) throws IOException
IOException
public static void delete(FileSystem fs, Path path) throws IOException
IOException
public static void rename(FileSystem fs, Path from, Path to) throws IOException
IOException
@Nullable public static FileStatus stat(FileSystem fs, Path path) throws IOException
IOException
Copyright © 2015–2016 FBK-irst. All rights reserved.