org.apache.hadoop.hive.metastore.api
Class PrincipalPrivilegeSet
java.lang.Object
org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<PrincipalPrivilegeSet>, org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public class PrincipalPrivilegeSet
- extends Object
- implements org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>, Serializable, Cloneable
- See Also:
- Serialized Form
Nested Class Summary |
static class |
PrincipalPrivilegeSet._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Method Summary |
void |
clear()
|
int |
compareTo(PrincipalPrivilegeSet other)
|
PrincipalPrivilegeSet |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(PrincipalPrivilegeSet that)
|
PrincipalPrivilegeSet._Fields |
fieldForId(int fieldId)
|
Object |
getFieldValue(PrincipalPrivilegeSet._Fields field)
|
Map<String,List<PrivilegeGrantInfo>> |
getGroupPrivileges()
|
int |
getGroupPrivilegesSize()
|
Map<String,List<PrivilegeGrantInfo>> |
getRolePrivileges()
|
int |
getRolePrivilegesSize()
|
Map<String,List<PrivilegeGrantInfo>> |
getUserPrivileges()
|
int |
getUserPrivilegesSize()
|
int |
hashCode()
|
boolean |
isSet(PrincipalPrivilegeSet._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetGroupPrivileges()
Returns true if field groupPrivileges is set (has been assigned a value) and false otherwise |
boolean |
isSetRolePrivileges()
Returns true if field rolePrivileges is set (has been assigned a value) and false otherwise |
boolean |
isSetUserPrivileges()
Returns true if field userPrivileges is set (has been assigned a value) and false otherwise |
void |
putToGroupPrivileges(String key,
List<PrivilegeGrantInfo> val)
|
void |
putToRolePrivileges(String key,
List<PrivilegeGrantInfo> val)
|
void |
putToUserPrivileges(String key,
List<PrivilegeGrantInfo> val)
|
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
void |
setFieldValue(PrincipalPrivilegeSet._Fields field,
Object value)
|
void |
setGroupPrivileges(Map<String,List<PrivilegeGrantInfo>> groupPrivileges)
|
void |
setGroupPrivilegesIsSet(boolean value)
|
void |
setRolePrivileges(Map<String,List<PrivilegeGrantInfo>> rolePrivileges)
|
void |
setRolePrivilegesIsSet(boolean value)
|
void |
setUserPrivileges(Map<String,List<PrivilegeGrantInfo>> userPrivileges)
|
void |
setUserPrivilegesIsSet(boolean value)
|
String |
toString()
|
void |
unsetGroupPrivileges()
|
void |
unsetRolePrivileges()
|
void |
unsetUserPrivileges()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
metaDataMap
public static final Map<PrincipalPrivilegeSet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
PrincipalPrivilegeSet
public PrincipalPrivilegeSet()
PrincipalPrivilegeSet
public PrincipalPrivilegeSet(Map<String,List<PrivilegeGrantInfo>> userPrivileges,
Map<String,List<PrivilegeGrantInfo>> groupPrivileges,
Map<String,List<PrivilegeGrantInfo>> rolePrivileges)
PrincipalPrivilegeSet
public PrincipalPrivilegeSet(PrincipalPrivilegeSet other)
- Performs a deep copy on other.
deepCopy
public PrincipalPrivilegeSet deepCopy()
- Specified by:
deepCopy
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
clear
public void clear()
- Specified by:
clear
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
getUserPrivilegesSize
public int getUserPrivilegesSize()
putToUserPrivileges
public void putToUserPrivileges(String key,
List<PrivilegeGrantInfo> val)
getUserPrivileges
public Map<String,List<PrivilegeGrantInfo>> getUserPrivileges()
setUserPrivileges
public void setUserPrivileges(Map<String,List<PrivilegeGrantInfo>> userPrivileges)
unsetUserPrivileges
public void unsetUserPrivileges()
isSetUserPrivileges
public boolean isSetUserPrivileges()
- Returns true if field userPrivileges is set (has been assigned a value) and false otherwise
setUserPrivilegesIsSet
public void setUserPrivilegesIsSet(boolean value)
getGroupPrivilegesSize
public int getGroupPrivilegesSize()
putToGroupPrivileges
public void putToGroupPrivileges(String key,
List<PrivilegeGrantInfo> val)
getGroupPrivileges
public Map<String,List<PrivilegeGrantInfo>> getGroupPrivileges()
setGroupPrivileges
public void setGroupPrivileges(Map<String,List<PrivilegeGrantInfo>> groupPrivileges)
unsetGroupPrivileges
public void unsetGroupPrivileges()
isSetGroupPrivileges
public boolean isSetGroupPrivileges()
- Returns true if field groupPrivileges is set (has been assigned a value) and false otherwise
setGroupPrivilegesIsSet
public void setGroupPrivilegesIsSet(boolean value)
getRolePrivilegesSize
public int getRolePrivilegesSize()
putToRolePrivileges
public void putToRolePrivileges(String key,
List<PrivilegeGrantInfo> val)
getRolePrivileges
public Map<String,List<PrivilegeGrantInfo>> getRolePrivileges()
setRolePrivileges
public void setRolePrivileges(Map<String,List<PrivilegeGrantInfo>> rolePrivileges)
unsetRolePrivileges
public void unsetRolePrivileges()
isSetRolePrivileges
public boolean isSetRolePrivileges()
- Returns true if field rolePrivileges is set (has been assigned a value) and false otherwise
setRolePrivilegesIsSet
public void setRolePrivilegesIsSet(boolean value)
setFieldValue
public void setFieldValue(PrincipalPrivilegeSet._Fields field,
Object value)
- Specified by:
setFieldValue
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
getFieldValue
public Object getFieldValue(PrincipalPrivilegeSet._Fields field)
- Specified by:
getFieldValue
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
isSet
public boolean isSet(PrincipalPrivilegeSet._Fields field)
- Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
- Specified by:
isSet
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
equals
public boolean equals(Object that)
- Overrides:
equals
in class Object
equals
public boolean equals(PrincipalPrivilegeSet that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(PrincipalPrivilegeSet other)
- Specified by:
compareTo
in interface Comparable<PrincipalPrivilegeSet>
fieldForId
public PrincipalPrivilegeSet._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
read
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
- Specified by:
read
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
- Throws:
org.apache.thrift.TException
write
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
write
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
- Throws:
org.apache.thrift.TException
toString
public String toString()
- Overrides:
toString
in class Object
validate
public void validate()
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
Copyright © 2012 The Apache Software Foundation