public class TSentryPrivilege extends Object implements org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TSentryPrivilege._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<TSentryPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TSentryPrivilege() |
TSentryPrivilege(String privilegeScope,
String serverName,
String action) |
TSentryPrivilege(TSentryPrivilege other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(TSentryPrivilege other) |
TSentryPrivilege |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TSentryPrivilege that) |
TSentryPrivilege._Fields |
fieldForId(int fieldId) |
String |
getAction() |
long |
getCreateTime() |
String |
getDbName() |
Object |
getFieldValue(TSentryPrivilege._Fields field) |
TSentryGrantOption |
getGrantOption() |
String |
getPrivilegeScope() |
String |
getServerName() |
String |
getTableName() |
String |
getURI() |
int |
hashCode() |
boolean |
isSet(TSentryPrivilege._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAction()
Returns true if field action 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 |
isSetDbName()
Returns true if field dbName 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 |
isSetPrivilegeScope()
Returns true if field privilegeScope is set (has been assigned a value) and false otherwise
|
boolean |
isSetServerName()
Returns true if field serverName is set (has been assigned a value) and false otherwise
|
boolean |
isSetTableName()
Returns true if field tableName is set (has been assigned a value) and false otherwise
|
boolean |
isSetURI()
Returns true if field URI is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setAction(String action) |
void |
setActionIsSet(boolean value) |
void |
setCreateTime(long createTime) |
void |
setCreateTimeIsSet(boolean value) |
void |
setDbName(String dbName) |
void |
setDbNameIsSet(boolean value) |
void |
setFieldValue(TSentryPrivilege._Fields field,
Object value) |
void |
setGrantOption(TSentryGrantOption grantOption) |
void |
setGrantOptionIsSet(boolean value) |
void |
setPrivilegeScope(String privilegeScope) |
void |
setPrivilegeScopeIsSet(boolean value) |
void |
setServerName(String serverName) |
void |
setServerNameIsSet(boolean value) |
void |
setTableName(String tableName) |
void |
setTableNameIsSet(boolean value) |
void |
setURI(String URI) |
void |
setURIIsSet(boolean value) |
String |
toString() |
void |
unsetAction() |
void |
unsetCreateTime() |
void |
unsetDbName() |
void |
unsetGrantOption() |
void |
unsetPrivilegeScope() |
void |
unsetServerName() |
void |
unsetTableName() |
void |
unsetURI() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TSentryPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TSentryPrivilege()
public TSentryPrivilege(TSentryPrivilege other)
public TSentryPrivilege deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
public String getPrivilegeScope()
public void setPrivilegeScope(String privilegeScope)
public void unsetPrivilegeScope()
public boolean isSetPrivilegeScope()
public void setPrivilegeScopeIsSet(boolean value)
public String getServerName()
public void setServerName(String serverName)
public void unsetServerName()
public boolean isSetServerName()
public void setServerNameIsSet(boolean value)
public String getDbName()
public void setDbName(String dbName)
public void unsetDbName()
public boolean isSetDbName()
public void setDbNameIsSet(boolean value)
public String getTableName()
public void setTableName(String tableName)
public void unsetTableName()
public boolean isSetTableName()
public void setTableNameIsSet(boolean value)
public String getURI()
public void setURI(String URI)
public void unsetURI()
public boolean isSetURI()
public void setURIIsSet(boolean value)
public String getAction()
public void setAction(String action)
public void unsetAction()
public boolean isSetAction()
public void setActionIsSet(boolean value)
public long getCreateTime()
public void setCreateTime(long createTime)
public void unsetCreateTime()
public boolean isSetCreateTime()
public void setCreateTimeIsSet(boolean value)
public TSentryGrantOption getGrantOption()
TSentryGrantOption
public void setGrantOption(TSentryGrantOption grantOption)
TSentryGrantOption
public void unsetGrantOption()
public boolean isSetGrantOption()
public void setGrantOptionIsSet(boolean value)
public void setFieldValue(TSentryPrivilege._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
public Object getFieldValue(TSentryPrivilege._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
public boolean isSet(TSentryPrivilege._Fields field)
isSet
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
public boolean equals(TSentryPrivilege that)
public int compareTo(TSentryPrivilege other)
compareTo
in interface Comparable<TSentryPrivilege>
public TSentryPrivilege._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TSentryPrivilege,TSentryPrivilege._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2015 Cloudera. All rights reserved.