Modifier and Type | Field and Description |
---|---|
static String |
FILE_SCHEME_PREFIX |
Constructor and Description |
---|
FSUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createSymlink(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path target,
org.apache.hadoop.fs.Path link,
boolean createParent) |
static org.apache.hadoop.fs.Path |
getSymLinkTarget(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p) |
static boolean |
isLocalFile(org.apache.hadoop.fs.Path filePath) |
static boolean |
isLocalFile(String fileName) |
static boolean |
isNotLocalFile(String fileName) |
static boolean |
isSymlink(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p) |
public static final String FILE_SCHEME_PREFIX
public FSUtils()
public static org.apache.hadoop.fs.Path getSymLinkTarget(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p) throws IOException
IOException
public static boolean isSymlink(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p) throws IOException
IOException
public static void createSymlink(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path target, org.apache.hadoop.fs.Path link, boolean createParent) throws IOException
IOException
public static boolean isLocalFile(String fileName)
public static boolean isLocalFile(org.apache.hadoop.fs.Path filePath)
public static boolean isNotLocalFile(String fileName)
Copyright © 2018 Apache Software Foundation. All rights reserved.