public class PrivilegeGrantInfo extends Object implements org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>, Serializable, Cloneable
| 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 Map<PrivilegeGrantInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
PrivilegeGrantInfo() |
PrivilegeGrantInfo(PrivilegeGrantInfo other)
Performs a deep copy on other.
|
PrivilegeGrantInfo(String privilege,
int createTime,
String grantor,
PrincipalType grantorType,
boolean grantOption) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final Map<PrivilegeGrantInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PrivilegeGrantInfo()
public PrivilegeGrantInfo(String privilege, int createTime, 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 String getPrivilege()
public void setPrivilege(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 String getGrantor()
public void setGrantor(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, Object value)
setFieldValue in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>public 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(PrivilegeGrantInfo that)
public int compareTo(PrivilegeGrantInfo other)
compareTo in interface 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 void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.