private static class CommonFSUtils.DfsBuilderUtility extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
allMethodsPresent |
(package private) static Method |
blockSizeMethod |
(package private) static Method |
bufferSizeMethod |
(package private) static Method |
buildMethod |
(package private) static Method |
createMethod |
(package private) static Class<?> |
dfsClass |
(package private) static Method |
overwriteMethod |
(package private) static Method |
recursiveMethod |
(package private) static Method |
replicateMethod |
(package private) static Method |
replicationMethod |
Modifier | Constructor and Description |
---|---|
private |
DfsBuilderUtility() |
Modifier and Type | Method and Description |
---|---|
(package private) static org.apache.hadoop.fs.FSDataOutputStream |
createHelper(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean overwritable)
Attempt to use builder API via reflection to create a file with the given parameters and
replication enabled.
|
(package private) static org.apache.hadoop.fs.FSDataOutputStream |
createHelper(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean overwritable,
int bufferSize,
short replication,
long blockSize,
boolean isRecursive)
Attempt to use builder API via reflection to create a file with the given parameters and
replication enabled.
|
static Method createMethod
static Method overwriteMethod
static Method bufferSizeMethod
static Method blockSizeMethod
static Method recursiveMethod
static Method replicateMethod
static Method replicationMethod
static Method buildMethod
static boolean allMethodsPresent
private DfsBuilderUtility()
static org.apache.hadoop.fs.FSDataOutputStream createHelper(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, int bufferSize, short replication, long blockSize, boolean isRecursive) throws IOException
IOException
static org.apache.hadoop.fs.FSDataOutputStream createHelper(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.