@InterfaceAudience.Public public class NamespacePermission extends Permission
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.
|
String |
getNamespace() |
int |
hashCode() |
boolean |
implies(String namespace,
Permission.Action action)
check if given action is granted in given namespace.
|
protected String |
rawExpression() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
getAccessScope, getActions, getVersion, implies, newBuilder, newBuilder, newBuilder, setActionspublic String getNamespace()
public boolean implies(String namespace, Permission.Action action)
namespace - namespace's nameaction - action to be checkedpublic boolean equalsExceptActions(Object obj)
PermissionequalsExceptActions 在类中 Permissionobj - instancepublic int hashCode()
hashCode 在类中 Permissionpublic boolean equals(Object obj)
equals 在类中 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.