org.apache.hadoop.hive.metastore.api
Class HiveObjectPrivilege

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege
All Implemented Interfaces:
Serializable, Cloneable, Comparable<HiveObjectPrivilege>, org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>

public class HiveObjectPrivilege
extends Object
implements org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class HiveObjectPrivilege._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<HiveObjectPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
HiveObjectPrivilege()
           
HiveObjectPrivilege(HiveObjectPrivilege other)
          Performs a deep copy on other.
HiveObjectPrivilege(HiveObjectRef hiveObject, String principalName, PrincipalType principalType, PrivilegeGrantInfo grantInfo)
           
 
Method Summary
 void clear()
           
 int compareTo(HiveObjectPrivilege other)
           
 HiveObjectPrivilege deepCopy()
           
 boolean equals(HiveObjectPrivilege that)
           
 boolean equals(Object that)
           
 HiveObjectPrivilege._Fields fieldForId(int fieldId)
           
 Object getFieldValue(HiveObjectPrivilege._Fields field)
           
 PrivilegeGrantInfo getGrantInfo()
           
 HiveObjectRef getHiveObject()
           
 String getPrincipalName()
           
 PrincipalType getPrincipalType()
           
 int hashCode()
           
 boolean isSet(HiveObjectPrivilege._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetGrantInfo()
          Returns true if field grantInfo is set (has been assigned a value) and false otherwise
 boolean isSetHiveObject()
          Returns true if field hiveObject is set (has been assigned a value) and false otherwise
 boolean isSetPrincipalName()
          Returns true if field principalName is set (has been assigned a value) and false otherwise
 boolean isSetPrincipalType()
          Returns true if field principalType is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(HiveObjectPrivilege._Fields field, Object value)
           
 void setGrantInfo(PrivilegeGrantInfo grantInfo)
           
 void setGrantInfoIsSet(boolean value)
           
 void setHiveObject(HiveObjectRef hiveObject)
           
 void setHiveObjectIsSet(boolean value)
           
 void setPrincipalName(String principalName)
           
 void setPrincipalNameIsSet(boolean value)
           
 void setPrincipalType(PrincipalType principalType)
           
 void setPrincipalTypeIsSet(boolean value)
           
 String toString()
           
 void unsetGrantInfo()
           
 void unsetHiveObject()
           
 void unsetPrincipalName()
           
 void unsetPrincipalType()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<HiveObjectPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

HiveObjectPrivilege

public HiveObjectPrivilege()

HiveObjectPrivilege

public HiveObjectPrivilege(HiveObjectRef hiveObject,
                           String principalName,
                           PrincipalType principalType,
                           PrivilegeGrantInfo grantInfo)

HiveObjectPrivilege

public HiveObjectPrivilege(HiveObjectPrivilege other)
Performs a deep copy on other.

Method Detail

deepCopy

public HiveObjectPrivilege deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>

getHiveObject

public HiveObjectRef getHiveObject()

setHiveObject

public void setHiveObject(HiveObjectRef hiveObject)

unsetHiveObject

public void unsetHiveObject()

isSetHiveObject

public boolean isSetHiveObject()
Returns true if field hiveObject is set (has been assigned a value) and false otherwise


setHiveObjectIsSet

public void setHiveObjectIsSet(boolean value)

getPrincipalName

public String getPrincipalName()

setPrincipalName

public void setPrincipalName(String principalName)

unsetPrincipalName

public void unsetPrincipalName()

isSetPrincipalName

public boolean isSetPrincipalName()
Returns true if field principalName is set (has been assigned a value) and false otherwise


setPrincipalNameIsSet

public void setPrincipalNameIsSet(boolean value)

getPrincipalType

public PrincipalType getPrincipalType()
See Also:
PrincipalType

setPrincipalType

public void setPrincipalType(PrincipalType principalType)
See Also:
PrincipalType

unsetPrincipalType

public void unsetPrincipalType()

isSetPrincipalType

public boolean isSetPrincipalType()
Returns true if field principalType is set (has been assigned a value) and false otherwise


setPrincipalTypeIsSet

public void setPrincipalTypeIsSet(boolean value)

getGrantInfo

public PrivilegeGrantInfo getGrantInfo()

setGrantInfo

public void setGrantInfo(PrivilegeGrantInfo grantInfo)

unsetGrantInfo

public void unsetGrantInfo()

isSetGrantInfo

public boolean isSetGrantInfo()
Returns true if field grantInfo is set (has been assigned a value) and false otherwise


setGrantInfoIsSet

public void setGrantInfoIsSet(boolean value)

setFieldValue

public void setFieldValue(HiveObjectPrivilege._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>

getFieldValue

public Object getFieldValue(HiveObjectPrivilege._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>

isSet

public boolean isSet(HiveObjectPrivilege._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<HiveObjectPrivilege,HiveObjectPrivilege._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(HiveObjectPrivilege that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(HiveObjectPrivilege other)
Specified by:
compareTo in interface Comparable<HiveObjectPrivilege>

fieldForId

public HiveObjectPrivilege._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._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<HiveObjectPrivilege,HiveObjectPrivilege._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<HiveObjectPrivilege,HiveObjectPrivilege._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