Package | Description |
---|---|
org.apache.hadoop.fs |
An abstract file system API.
|
org.apache.hadoop.fs.ftp | |
org.apache.hadoop.fs.kfs |
A client for the Kosmos filesystem (KFS)
|
org.apache.hadoop.fs.permission | |
org.apache.hadoop.fs.s3 |
A distributed, block-based implementation of
FileSystem that uses Amazon S3
as a backing store. |
org.apache.hadoop.fs.s3native |
A distributed implementation of
FileSystem for reading and writing files on
Amazon S3. |
Modifier and Type | Method and Description |
---|---|
FsPermission |
FileStatus.getPermission()
Get FsPermission associated with the file.
|
Modifier and Type | Method and Description |
---|---|
static FSDataOutputStream |
FileSystem.create(FileSystem fs,
Path file,
FsPermission permission)
create a file with the provided permission
The permission of the file is set to be the provided permission as in
setPermission, not permission&~umask
It is implemented using two RPCs.
|
FSDataOutputStream |
FilterFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress
reporting.
|
FSDataOutputStream |
RawLocalFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress
reporting.
|
FSDataOutputStream |
HarFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress) |
abstract FSDataOutputStream |
FileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress
reporting.
|
FSDataOutputStream |
ChecksumFileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress
reporting.
|
static boolean |
FileSystem.mkdirs(FileSystem fs,
Path dir,
FsPermission permission)
create a directory with the provided permission
The permission of the directory is set to be the provided permission as in
setPermission, not permission&~umask
|
boolean |
FilterFileSystem.mkdirs(Path f,
FsPermission permission)
Make the given file and all non-existent parents into
directories.
|
boolean |
RawLocalFileSystem.mkdirs(Path f,
FsPermission permission)
Make the given file and all non-existent parents into
directories.
|
boolean |
HarFileSystem.mkdirs(Path f,
FsPermission permission)
not implemented.
|
abstract boolean |
FileSystem.mkdirs(Path f,
FsPermission permission)
Make the given file and all non-existent parents into
directories.
|
protected void |
FileStatus.setPermission(FsPermission permission)
Sets permission.
|
void |
FilterFileSystem.setPermission(Path p,
FsPermission permission)
Set permission of a path.
|
void |
RawLocalFileSystem.setPermission(Path p,
FsPermission permission)
Use the command chmod to set permission.
|
void |
HarFileSystem.setPermission(Path p,
FsPermission permisssion)
Not implemented.
|
void |
FileSystem.setPermission(Path p,
FsPermission permission)
Set permission of a path.
|
Constructor and Description |
---|
FileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
long access_time,
FsPermission permission,
String owner,
String group,
Path path) |
Modifier and Type | Method and Description |
---|---|
FSDataOutputStream |
FTPFileSystem.create(Path file,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
A stream obtained via this call must be closed before using other APIs of
this class or else the invocation will block.
|
boolean |
FTPFileSystem.mkdirs(Path file,
FsPermission permission) |
Modifier and Type | Method and Description |
---|---|
FSDataOutputStream |
KosmosFileSystem.create(Path file,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress) |
boolean |
KosmosFileSystem.mkdirs(Path path,
FsPermission permission) |
Modifier and Type | Method and Description |
---|---|
FsPermission |
FsPermission.applyUMask(FsPermission umask)
Apply a umask to this permission and return a new one
|
static FsPermission |
FsPermission.createImmutable(short permission)
Create an immutable
FsPermission object. |
static FsPermission |
FsPermission.getDefault()
Get the default permission.
|
FsPermission |
PermissionStatus.getPermission()
Return permission
|
static FsPermission |
FsPermission.getUMask(Configuration conf)
Get the user file creation mask (umask)
|
static FsPermission |
FsPermission.read(DataInput in)
Create and initialize a
FsPermission from DataInput . |
static FsPermission |
FsPermission.valueOf(String unixSymbolicPermission)
Create a FsPermission from a Unix symbolic permission string
|
Modifier and Type | Method and Description |
---|---|
PermissionStatus |
PermissionStatus.applyUMask(FsPermission umask)
Apply umask.
|
FsPermission |
FsPermission.applyUMask(FsPermission umask)
Apply a umask to this permission and return a new one
|
static PermissionStatus |
PermissionStatus.createImmutable(String user,
String group,
FsPermission permission)
Create an immutable
PermissionStatus object. |
static void |
FsPermission.setUMask(Configuration conf,
FsPermission umask)
Set the user file creation mask (umask)
|
static void |
PermissionStatus.write(DataOutput out,
String username,
String groupname,
FsPermission permission)
Serialize a
PermissionStatus from its base components. |
Constructor and Description |
---|
FsPermission(FsPermission other)
Copy constructor
|
PermissionStatus(String user,
String group,
FsPermission permission)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FSDataOutputStream |
S3FileSystem.create(Path file,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress) |
boolean |
S3FileSystem.mkdirs(Path path,
FsPermission permission) |
Modifier and Type | Method and Description |
---|---|
FSDataOutputStream |
NativeS3FileSystem.create(Path f,
FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress) |
boolean |
NativeS3FileSystem.mkdirs(Path f,
FsPermission permission) |
Copyright © 2010 The Apache Software Foundation