@InterfaceAudience.Public @InterfaceStability.Evolving public class Permission extends org.apache.hadoop.io.VersionedWritable
TablePermission
Modifier and Type | Class and Description |
---|---|
static class |
Permission.Action |
Modifier and Type | Field and Description |
---|---|
protected static Map<Byte,Permission.Action> |
ACTION_BY_CODE |
protected Permission.Action[] |
actions |
protected static byte |
VERSION |
Constructor and Description |
---|
Permission()
Empty constructor for Writable implementation.
|
Permission(byte[] actionCodes) |
Permission(Permission.Action... assigned) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Permission.Action[] |
getActions() |
byte |
getVersion() |
int |
hashCode() |
boolean |
implies(Permission.Action action) |
void |
readFields(DataInput in) |
void |
setActions(Permission.Action[] assigned) |
String |
toString() |
void |
write(DataOutput out) |
protected static final byte VERSION
protected static final Map<Byte,Permission.Action> ACTION_BY_CODE
protected Permission.Action[] actions
public Permission()
public Permission(Permission.Action... assigned)
public Permission(byte[] actionCodes)
public Permission.Action[] getActions()
public boolean implies(Permission.Action action)
public void setActions(Permission.Action[] assigned)
public byte getVersion()
getVersion
in class org.apache.hadoop.io.VersionedWritable
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.io.VersionedWritable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.io.VersionedWritable
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.