public class GrantRevokePrivilegeRequest extends Object implements org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>, Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
GrantRevokePrivilegeRequest._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<GrantRevokePrivilegeRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
GrantRevokePrivilegeRequest() |
GrantRevokePrivilegeRequest(GrantRevokePrivilegeRequest other)
Performs a deep copy on other.
|
GrantRevokePrivilegeRequest(GrantRevokeType requestType,
PrivilegeBag privileges) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(GrantRevokePrivilegeRequest other) |
GrantRevokePrivilegeRequest |
deepCopy() |
boolean |
equals(GrantRevokePrivilegeRequest that) |
boolean |
equals(Object that) |
GrantRevokePrivilegeRequest._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(GrantRevokePrivilegeRequest._Fields field) |
PrivilegeBag |
getPrivileges() |
GrantRevokeType |
getRequestType() |
int |
hashCode() |
boolean |
isRevokeGrantOption() |
boolean |
isSet(GrantRevokePrivilegeRequest._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrivileges()
Returns true if field privileges is set (has been assigned a value) and false otherwise
|
boolean |
isSetRequestType()
Returns true if field requestType is set (has been assigned a value) and false otherwise
|
boolean |
isSetRevokeGrantOption()
Returns true if field revokeGrantOption is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(GrantRevokePrivilegeRequest._Fields field,
Object value) |
void |
setPrivileges(PrivilegeBag privileges) |
void |
setPrivilegesIsSet(boolean value) |
void |
setRequestType(GrantRevokeType requestType) |
void |
setRequestTypeIsSet(boolean value) |
void |
setRevokeGrantOption(boolean revokeGrantOption) |
void |
setRevokeGrantOptionIsSet(boolean value) |
String |
toString() |
void |
unsetPrivileges() |
void |
unsetRequestType() |
void |
unsetRevokeGrantOption() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<GrantRevokePrivilegeRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public GrantRevokePrivilegeRequest()
public GrantRevokePrivilegeRequest(GrantRevokeType requestType, PrivilegeBag privileges)
public GrantRevokePrivilegeRequest(GrantRevokePrivilegeRequest other)
public GrantRevokePrivilegeRequest deepCopy()
deepCopy in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>public void clear()
clear in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>public GrantRevokeType getRequestType()
GrantRevokeTypepublic void setRequestType(GrantRevokeType requestType)
GrantRevokeTypepublic void unsetRequestType()
public boolean isSetRequestType()
public void setRequestTypeIsSet(boolean value)
public PrivilegeBag getPrivileges()
public void setPrivileges(PrivilegeBag privileges)
public void unsetPrivileges()
public boolean isSetPrivileges()
public void setPrivilegesIsSet(boolean value)
public boolean isRevokeGrantOption()
public void setRevokeGrantOption(boolean revokeGrantOption)
public void unsetRevokeGrantOption()
public boolean isSetRevokeGrantOption()
public void setRevokeGrantOptionIsSet(boolean value)
public void setFieldValue(GrantRevokePrivilegeRequest._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>public Object getFieldValue(GrantRevokePrivilegeRequest._Fields field)
getFieldValue in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>public boolean isSet(GrantRevokePrivilegeRequest._Fields field)
isSet in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>public boolean equals(GrantRevokePrivilegeRequest that)
public int compareTo(GrantRevokePrivilegeRequest other)
compareTo in interface Comparable<GrantRevokePrivilegeRequest>public GrantRevokePrivilegeRequest._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._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<GrantRevokePrivilegeRequest,GrantRevokePrivilegeRequest._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.