| Package | Description |
|---|---|
| org.apache.hadoop.fs |
| Modifier and Type | Method and Description |
|---|---|
static FileSystem |
FileSystem.get(org.apache.hadoop.conf.Configuration conf)
Returns the configured FileSystem implementation.
|
FileSystem |
FileSystemCache.get(URI uri,
org.apache.hadoop.conf.Configuration configuration) |
static FileSystem |
FileSystem.get(URI uri,
org.apache.hadoop.conf.Configuration conf)
Get a FileSystem for this URI's scheme and authority.
|
static FileSystem |
FileSystem.get(URI uri,
org.apache.hadoop.conf.Configuration conf,
String user)
Get a FileSystem instance based on the uri, the passed in
configuration and the user.
|
FileSystem[] |
FileSystem.getChildFileSystems()
Get all the immediate child FileSystems embedded in this FileSystem.
|
protected static FileSystem |
FileSystem.getFSofPath(org.apache.hadoop.fs.Path absOrFqPath,
org.apache.hadoop.conf.Configuration conf) |
static FileSystem |
FileSystem.getNamed(String name,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
call
get(URI, Configuration) instead. |
FileSystem |
FileSystemCache.getUnique(URI uri,
org.apache.hadoop.conf.Configuration configuration) |
static FileSystem |
FileSystem.newInstance(org.apache.hadoop.conf.Configuration conf)
Returns a unique configured FileSystem implementation for the default
filesystem of the supplied configuration.
|
static FileSystem |
FileSystem.newInstance(URI uri,
org.apache.hadoop.conf.Configuration config)
Returns the FileSystem for this URI's scheme and authority.
|
static FileSystem |
FileSystem.newInstance(URI uri,
org.apache.hadoop.conf.Configuration conf,
String user)
Returns the FileSystem for this URI's scheme and authority and the
given user.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<? extends FileSystem> |
FileSystem.getFileSystemClass(String scheme,
org.apache.hadoop.conf.Configuration conf)
Get the FileSystem implementation class of a filesystem.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.FSDataOutputStream |
FileSystem.create(FileSystem fs,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.fs.permission.FsPermission permission)
Create a file with the provided permission.
|
protected static org.apache.hadoop.fs.FileSystem.FSDataInputStreamBuilder |
FileSystem.createDataInputStreamBuilder(FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
Create instance of the standard
FSDataInputStreamBuilder for the
given filesystem and path. |
protected static org.apache.hadoop.fs.FileSystem.FSDataInputStreamBuilder |
FileSystem.createDataInputStreamBuilder(FileSystem fileSystem,
org.apache.hadoop.fs.PathHandle pathHandle)
Create instance of the standard
FSDataInputStreamBuilder for the
given filesystem and path handle. |
protected static org.apache.hadoop.fs.FSDataOutputStreamBuilder |
FileSystem.createDataOutputStreamBuilder(FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
Create instance of the standard FSDataOutputStreamBuilder for the
given filesystem and path.
|
static boolean |
FileSystem.mkdirs(FileSystem fs,
org.apache.hadoop.fs.Path dir,
org.apache.hadoop.fs.permission.FsPermission permission)
Create a directory with the provided permission.
|
void |
FileSystemCache.remove(FileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
static FileSystem.Statistics |
FileSystem.getStatistics(String scheme,
Class<? extends FileSystem> cls)
Deprecated.
|
Copyright © 2013–2024. All rights reserved.