@InterfaceAudience.Public public class TablePermission extends Permission
null, it implies
full table access.Permission.Action, Permission.Builder, Permission.ScopeACTION_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, setActionspublic 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 falsepublic boolean tableFieldsEqual(TablePermission tp)
tp - to be checked table permissionpublic boolean equalsExceptActions(Object obj)
PermissionequalsExceptActions 在类中 Permissionobj - instancepublic boolean equals(Object obj)
equals 在类中 Permissionpublic int hashCode()
hashCode 在类中 Permissionpublic String toString()
toString 在类中 Permissionprotected String rawExpression()
rawExpression 在类中 Permissionpublic void readFields(DataInput in) throws IOException
readFields 在接口中 org.apache.hadoop.io.WritablereadFields 在类中 PermissionIOExceptionpublic void write(DataOutput out) throws IOException
write 在接口中 org.apache.hadoop.io.Writablewrite 在类中 PermissionIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.