public class TSentryActiveRoleSet extends Object implements org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TSentryActiveRoleSet._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<TSentryActiveRoleSet._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TSentryActiveRoleSet() |
TSentryActiveRoleSet(boolean all,
Set<String> roles) |
TSentryActiveRoleSet(TSentryActiveRoleSet other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
addToRoles(String elem) |
void |
clear() |
int |
compareTo(TSentryActiveRoleSet other) |
TSentryActiveRoleSet |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TSentryActiveRoleSet that) |
TSentryActiveRoleSet._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(TSentryActiveRoleSet._Fields field) |
Set<String> |
getRoles() |
Iterator<String> |
getRolesIterator() |
int |
getRolesSize() |
int |
hashCode() |
boolean |
isAll() |
boolean |
isSet(TSentryActiveRoleSet._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAll()
Returns true if field all is set (has been assigned a value) and false otherwise
|
boolean |
isSetRoles()
Returns true if field roles is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setAll(boolean all) |
void |
setAllIsSet(boolean value) |
void |
setFieldValue(TSentryActiveRoleSet._Fields field,
Object value) |
void |
setRoles(Set<String> roles) |
void |
setRolesIsSet(boolean value) |
String |
toString() |
void |
unsetAll() |
void |
unsetRoles() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TSentryActiveRoleSet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TSentryActiveRoleSet()
public TSentryActiveRoleSet(TSentryActiveRoleSet other)
public TSentryActiveRoleSet deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
public boolean isAll()
public void setAll(boolean all)
public void unsetAll()
public boolean isSetAll()
public void setAllIsSet(boolean value)
public int getRolesSize()
public void addToRoles(String elem)
public void unsetRoles()
public boolean isSetRoles()
public void setRolesIsSet(boolean value)
public void setFieldValue(TSentryActiveRoleSet._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
public Object getFieldValue(TSentryActiveRoleSet._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
public boolean isSet(TSentryActiveRoleSet._Fields field)
isSet
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
public boolean equals(TSentryActiveRoleSet that)
public int compareTo(TSentryActiveRoleSet other)
compareTo
in interface Comparable<TSentryActiveRoleSet>
public TSentryActiveRoleSet._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TSentryActiveRoleSet,TSentryActiveRoleSet._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<TSentryActiveRoleSet,TSentryActiveRoleSet._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2015 Cloudera. All rights reserved.