构造器和说明 |
---|
PermissionStatus(String user,
String group,
FsPermission permission)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
PermissionStatus |
applyUMask(FsPermission umask)
Apply umask.
|
static PermissionStatus |
createImmutable(String user,
String group,
FsPermission permission)
Create an immutable
PermissionStatus object. |
String |
getGroupName()
Return group name
|
FsPermission |
getPermission()
Return permission
|
String |
getUserName()
Return user name
|
static PermissionStatus |
read(DataInput in)
Create and initialize a
PermissionStatus from DataInput . |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
static void |
write(DataOutput out,
String username,
String groupname,
FsPermission permission)
Serialize a
PermissionStatus from its base components. |
public PermissionStatus(String user, String group, FsPermission permission)
public static PermissionStatus createImmutable(String user, String group, FsPermission permission)
PermissionStatus
object.public String getUserName()
public String getGroupName()
public FsPermission getPermission()
public PermissionStatus applyUMask(FsPermission umask)
public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
public static PermissionStatus read(DataInput in) throws IOException
PermissionStatus
from DataInput
.IOException
public static void write(DataOutput out, String username, String groupname, FsPermission permission) throws IOException
PermissionStatus
from its base components.IOException
Copyright © 2009 The Apache Software Foundation