@InterfaceAudience.Public public class TablePermission extends Permission
null
, it implies
full table access.Permission.Action, Permission.Builder, Permission.Scope
ACTION_BY_CODE, actions, scope, SCOPE_BY_CODE, VERSION
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsExceptActions(Object obj)
Check if two permission equals regardless of actions.
|
byte[] |
getFamily() |
String |
getNamespace() |
byte[] |
getQualifier() |
TableName |
getTableName() |
boolean |
hasFamily() |
int |
hashCode() |
boolean |
hasQualifier() |
boolean |
implies(TableName table,
byte[] family,
byte[] qualifier,
Permission.Action action)
Check if given action can performs on given table:family:qualifier.
|
boolean |
implies(TableName table,
byte[] family,
Permission.Action action)
Check if given action can performs on given table:family.
|
boolean |
implies(TableName table,
KeyValue kv,
Permission.Action action)
Checks if this permission grants access to perform the given action on
the given table and key value.
|
protected String |
rawExpression() |
void |
readFields(DataInput in) |
boolean |
tableFieldsEqual(TablePermission tp)
Check if fields of table in table permission equals.
|
String |
toString() |
void |
write(DataOutput out) |
getAccessScope, getActions, getVersion, implies, newBuilder, newBuilder, newBuilder, setActions
public TableName getTableName()
public boolean hasFamily()
public byte[] getFamily()
public boolean hasQualifier()
public byte[] getQualifier()
public String getNamespace()
public boolean implies(TableName table, byte[] family, byte[] qualifier, Permission.Action action)
table
- table namefamily
- family namequalifier
- qualifier nameaction
- one of [Read, Write, Create, Exec, Admin]public boolean implies(TableName table, byte[] family, Permission.Action action)
table
- table namefamily
- family nameaction
- one of [Read, Write, Create, Exec, Admin]public boolean implies(TableName table, KeyValue kv, Permission.Action action)
table
- the table on which the operation is being performedkv
- the KeyValue on which the operation is being requestedaction
- the action requestedtrue
if the action is allowed over the given scope
by this permission, otherwise false
public boolean tableFieldsEqual(TablePermission tp)
tp
- to be checked table permissionpublic boolean equalsExceptActions(Object obj)
Permission
equalsExceptActions
在类中 Permission
obj
- instancepublic boolean equals(Object obj)
equals
在类中 Permission
public int hashCode()
hashCode
在类中 Permission
public String toString()
toString
在类中 Permission
protected String rawExpression()
rawExpression
在类中 Permission
public void readFields(DataInput in) throws IOException
readFields
在接口中 org.apache.hadoop.io.Writable
readFields
在类中 Permission
IOException
public void write(DataOutput out) throws IOException
write
在接口中 org.apache.hadoop.io.Writable
write
在类中 Permission
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.