@InterfaceAudience.Public public class NamespacePermission extends Permission
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.
|
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, setActions
public String getNamespace()
public boolean implies(String namespace, Permission.Action action)
namespace
- namespace's nameaction
- action to be checkedpublic boolean equalsExceptActions(Object obj)
Permission
equalsExceptActions
在类中 Permission
obj
- instancepublic int hashCode()
hashCode
在类中 Permission
public boolean equals(Object obj)
equals
在类中 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.