@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class PrivilegeGrantInfo extends java.lang.Object implements org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PrivilegeGrantInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
PrivilegeGrantInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<PrivilegeGrantInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
PrivilegeGrantInfo() |
PrivilegeGrantInfo(PrivilegeGrantInfo other)
Performs a deep copy on other.
|
PrivilegeGrantInfo(java.lang.String privilege,
int createTime,
java.lang.String grantor,
PrincipalType grantorType,
boolean grantOption) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(PrivilegeGrantInfo other) |
PrivilegeGrantInfo |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(PrivilegeGrantInfo that) |
PrivilegeGrantInfo._Fields |
fieldForId(int fieldId) |
int |
getCreateTime() |
java.lang.Object |
getFieldValue(PrivilegeGrantInfo._Fields field) |
java.lang.String |
getGrantor() |
PrincipalType |
getGrantorType() |
java.lang.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,
java.lang.Object value) |
void |
setGrantOption(boolean grantOption) |
void |
setGrantOptionIsSet(boolean value) |
void |
setGrantor(java.lang.String grantor) |
void |
setGrantorIsSet(boolean value) |
void |
setGrantorType(PrincipalType grantorType) |
void |
setGrantorTypeIsSet(boolean value) |
void |
setPrivilege(java.lang.String privilege) |
void |
setPrivilegeIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetCreateTime() |
void |
unsetGrantOption() |
void |
unsetGrantor() |
void |
unsetGrantorType() |
void |
unsetPrivilege() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<PrivilegeGrantInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PrivilegeGrantInfo()
public PrivilegeGrantInfo(java.lang.String privilege,
int createTime,
java.lang.String grantor,
PrincipalType grantorType,
boolean grantOption)
public PrivilegeGrantInfo(PrivilegeGrantInfo other)
public PrivilegeGrantInfo deepCopy()
deepCopy in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public void clear()
clear in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public java.lang.String getPrivilege()
public void setPrivilege(java.lang.String privilege)
public void unsetPrivilege()
public boolean isSetPrivilege()
public void setPrivilegeIsSet(boolean value)
public int getCreateTime()
public void setCreateTime(int createTime)
public void unsetCreateTime()
public boolean isSetCreateTime()
public void setCreateTimeIsSet(boolean value)
public java.lang.String getGrantor()
public void setGrantor(java.lang.String grantor)
public void unsetGrantor()
public boolean isSetGrantor()
public void setGrantorIsSet(boolean value)
public PrincipalType getGrantorType()
PrincipalTypepublic void setGrantorType(PrincipalType grantorType)
PrincipalTypepublic void unsetGrantorType()
public boolean isSetGrantorType()
public void setGrantorTypeIsSet(boolean value)
public boolean isGrantOption()
public void setGrantOption(boolean grantOption)
public void unsetGrantOption()
public boolean isSetGrantOption()
public void setGrantOptionIsSet(boolean value)
public void setFieldValue(PrivilegeGrantInfo._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public java.lang.Object getFieldValue(PrivilegeGrantInfo._Fields field)
getFieldValue in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public boolean isSet(PrivilegeGrantInfo._Fields field)
isSet in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(PrivilegeGrantInfo that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(PrivilegeGrantInfo other)
compareTo in interface java.lang.Comparable<PrivilegeGrantInfo>public PrivilegeGrantInfo._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>org.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2013-2021. All Rights Reserved.