org.apache.hadoop.hbase.security.access
Class Permission
java.lang.Object
org.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.security.access.Permission
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- TablePermission
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class Permission
- extends org.apache.hadoop.io.VersionedWritable
Base permissions instance representing the ability to perform a given set
of actions.
- See Also:
TablePermission
VERSION
protected static final byte VERSION
- See Also:
- Constant Field Values
ACTION_BY_CODE
protected static final Map<Byte,Permission.Action> ACTION_BY_CODE
actions
protected Permission.Action[] actions
Permission
public Permission()
- Empty constructor for Writable implementation. Do not use.
Permission
public Permission(Permission.Action... assigned)
Permission
public Permission(byte[] actionCodes)
getActions
public Permission.Action[] getActions()
implies
public boolean implies(Permission.Action action)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getVersion
public byte getVersion()
- Specified by:
getVersion
in class org.apache.hadoop.io.VersionedWritable
- Returns:
- the object version number
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.