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

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

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

See Also:
Serialized Form

Nested Class Summary
static class PrivilegeGrantInfo._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<PrivilegeGrantInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
PrivilegeGrantInfo()
           
PrivilegeGrantInfo(PrivilegeGrantInfo other)
          Performs a deep copy on other.
PrivilegeGrantInfo(String privilege, int createTime, String grantor, PrincipalType grantorType, boolean grantOption)
           
 
Method Summary
 void clear()
           
 int compareTo(PrivilegeGrantInfo other)
           
 PrivilegeGrantInfo deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(PrivilegeGrantInfo that)
           
 PrivilegeGrantInfo._Fields fieldForId(int fieldId)
           
 int getCreateTime()
           
 Object getFieldValue(PrivilegeGrantInfo._Fields field)
           
 String getGrantor()
           
 PrincipalType getGrantorType()
           
 String getPrivilege()
           
 int hashCode()
           
 boolean isGrantOption()
           
 boolean isSet(PrivilegeGrantInfo._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCreateTime()
          Returns true if field createTime is set (has been assigned a value) and false otherwise
 boolean isSetGrantOption()
          Returns true if field grantOption is set (has been assigned a value) and false otherwise
 boolean isSetGrantor()
          Returns true if field grantor is set (has been assigned a value) and false otherwise
 boolean isSetGrantorType()
          Returns true if field grantorType is set (has been assigned a value) and false otherwise
 boolean isSetPrivilege()
          Returns true if field privilege is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setCreateTime(int createTime)
           
 void setCreateTimeIsSet(boolean value)
           
 void setFieldValue(PrivilegeGrantInfo._Fields field, Object value)
           
 void setGrantOption(boolean grantOption)
           
 void setGrantOptionIsSet(boolean value)
           
 void setGrantor(String grantor)
           
 void setGrantorIsSet(boolean value)
           
 void setGrantorType(PrincipalType grantorType)
           
 void setGrantorTypeIsSet(boolean value)
           
 void setPrivilege(String privilege)
           
 void setPrivilegeIsSet(boolean value)
           
 String toString()
           
 void unsetCreateTime()
           
 void unsetGrantOption()
           
 void unsetGrantor()
           
 void unsetGrantorType()
           
 void unsetPrivilege()
           
 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<PrivilegeGrantInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

PrivilegeGrantInfo

public PrivilegeGrantInfo()

PrivilegeGrantInfo

public PrivilegeGrantInfo(String privilege,
                          int createTime,
                          String grantor,
                          PrincipalType grantorType,
                          boolean grantOption)

PrivilegeGrantInfo

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

Method Detail

deepCopy

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

clear

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

getPrivilege

public String getPrivilege()

setPrivilege

public void setPrivilege(String privilege)

unsetPrivilege

public void unsetPrivilege()

isSetPrivilege

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


setPrivilegeIsSet

public void setPrivilegeIsSet(boolean value)

getCreateTime

public int getCreateTime()

setCreateTime

public void setCreateTime(int createTime)

unsetCreateTime

public void unsetCreateTime()

isSetCreateTime

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


setCreateTimeIsSet

public void setCreateTimeIsSet(boolean value)

getGrantor

public String getGrantor()

setGrantor

public void setGrantor(String grantor)

unsetGrantor

public void unsetGrantor()

isSetGrantor

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


setGrantorIsSet

public void setGrantorIsSet(boolean value)

getGrantorType

public PrincipalType getGrantorType()
See Also:
PrincipalType

setGrantorType

public void setGrantorType(PrincipalType grantorType)
See Also:
PrincipalType

unsetGrantorType

public void unsetGrantorType()

isSetGrantorType

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


setGrantorTypeIsSet

public void setGrantorTypeIsSet(boolean value)

isGrantOption

public boolean isGrantOption()

setGrantOption

public void setGrantOption(boolean grantOption)

unsetGrantOption

public void unsetGrantOption()

isSetGrantOption

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


setGrantOptionIsSet

public void setGrantOptionIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(PrivilegeGrantInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public PrivilegeGrantInfo._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._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<PrivilegeGrantInfo,PrivilegeGrantInfo._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<PrivilegeGrantInfo,PrivilegeGrantInfo._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 © 2011 The Apache Software Foundation