public class TSentryRole extends Object implements org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TSentryRole._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<TSentryRole._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TSentryRole() |
TSentryRole(String roleName,
Set<TSentryGroup> groups,
String grantorPrincipal) |
TSentryRole(TSentryRole other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
addToGroups(TSentryGroup elem) |
void |
clear() |
int |
compareTo(TSentryRole other) |
TSentryRole |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TSentryRole that) |
TSentryRole._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(TSentryRole._Fields field) |
String |
getGrantorPrincipal() |
Set<TSentryGroup> |
getGroups() |
Iterator<TSentryGroup> |
getGroupsIterator() |
int |
getGroupsSize() |
String |
getRoleName() |
int |
hashCode() |
boolean |
isSet(TSentryRole._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantorPrincipal()
Returns true if field grantorPrincipal is set (has been assigned a value) and false otherwise
|
boolean |
isSetGroups()
Returns true if field groups is set (has been assigned a value) and false otherwise
|
boolean |
isSetRoleName()
Returns true if field roleName is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(TSentryRole._Fields field,
Object value) |
void |
setGrantorPrincipal(String grantorPrincipal) |
void |
setGrantorPrincipalIsSet(boolean value) |
void |
setGroups(Set<TSentryGroup> groups) |
void |
setGroupsIsSet(boolean value) |
void |
setRoleName(String roleName) |
void |
setRoleNameIsSet(boolean value) |
String |
toString() |
void |
unsetGrantorPrincipal() |
void |
unsetGroups() |
void |
unsetRoleName() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TSentryRole._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TSentryRole()
public TSentryRole(String roleName, Set<TSentryGroup> groups, String grantorPrincipal)
public TSentryRole(TSentryRole other)
public TSentryRole deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
public String getRoleName()
public void setRoleName(String roleName)
public void unsetRoleName()
public boolean isSetRoleName()
public void setRoleNameIsSet(boolean value)
public int getGroupsSize()
public Iterator<TSentryGroup> getGroupsIterator()
public void addToGroups(TSentryGroup elem)
public Set<TSentryGroup> getGroups()
public void setGroups(Set<TSentryGroup> groups)
public void unsetGroups()
public boolean isSetGroups()
public void setGroupsIsSet(boolean value)
public String getGrantorPrincipal()
public void setGrantorPrincipal(String grantorPrincipal)
public void unsetGrantorPrincipal()
public boolean isSetGrantorPrincipal()
public void setGrantorPrincipalIsSet(boolean value)
public void setFieldValue(TSentryRole._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
public Object getFieldValue(TSentryRole._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
public boolean isSet(TSentryRole._Fields field)
isSet
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
public boolean equals(TSentryRole that)
public int compareTo(TSentryRole other)
compareTo
in interface Comparable<TSentryRole>
public TSentryRole._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TSentryRole,TSentryRole._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2015 Cloudera. All rights reserved.