|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.permission.PermissionStatus
public class PermissionStatus
Store permission related information.
Constructor Summary | |
---|---|
PermissionStatus(String user,
String group,
FsPermission permission)
Constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PermissionStatus(String user, String group, FsPermission permission)
Method Detail |
---|
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)
FsPermission.applyUMask(FsPermission)
public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
public void write(DataOutput out) throws IOException
out
.
write
in interface 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
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |