public class HiveObjectPrivilege extends Object implements org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>, Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveObjectPrivilege._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<HiveObjectPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
HiveObjectPrivilege() |
HiveObjectPrivilege(HiveObjectPrivilege other)
Performs a deep copy on other.
|
HiveObjectPrivilege(HiveObjectRef hiveObject,
String principalName,
PrincipalType principalType,
PrivilegeGrantInfo grantInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(HiveObjectPrivilege other) |
HiveObjectPrivilege |
deepCopy() |
boolean |
equals(HiveObjectPrivilege that) |
boolean |
equals(Object that) |
HiveObjectPrivilege._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(HiveObjectPrivilege._Fields field) |
PrivilegeGrantInfo |
getGrantInfo() |
HiveObjectRef |
getHiveObject() |
String |
getPrincipalName() |
PrincipalType |
getPrincipalType() |
int |
hashCode() |
boolean |
isSet(HiveObjectPrivilege._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantInfo()
Returns true if field grantInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetHiveObject()
Returns true if field hiveObject is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrincipalName()
Returns true if field principalName is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrincipalType()
Returns true if field principalType is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(HiveObjectPrivilege._Fields field,
Object value) |
void |
setGrantInfo(PrivilegeGrantInfo grantInfo) |
void |
setGrantInfoIsSet(boolean value) |
void |
setHiveObject(HiveObjectRef hiveObject) |
void |
setHiveObjectIsSet(boolean value) |
void |
setPrincipalName(String principalName) |
void |
setPrincipalNameIsSet(boolean value) |
void |
setPrincipalType(PrincipalType principalType) |
void |
setPrincipalTypeIsSet(boolean value) |
String |
toString() |
void |
unsetGrantInfo() |
void |
unsetHiveObject() |
void |
unsetPrincipalName() |
void |
unsetPrincipalType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<HiveObjectPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public HiveObjectPrivilege()
public HiveObjectPrivilege(HiveObjectRef hiveObject, String principalName, PrincipalType principalType, PrivilegeGrantInfo grantInfo)
public HiveObjectPrivilege(HiveObjectPrivilege other)
public HiveObjectPrivilege deepCopy()
deepCopy in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>public void clear()
clear in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>public HiveObjectRef getHiveObject()
public void setHiveObject(HiveObjectRef hiveObject)
public void unsetHiveObject()
public boolean isSetHiveObject()
public void setHiveObjectIsSet(boolean value)
public String getPrincipalName()
public void setPrincipalName(String principalName)
public void unsetPrincipalName()
public boolean isSetPrincipalName()
public void setPrincipalNameIsSet(boolean value)
public PrincipalType getPrincipalType()
PrincipalTypepublic void setPrincipalType(PrincipalType principalType)
PrincipalTypepublic void unsetPrincipalType()
public boolean isSetPrincipalType()
public void setPrincipalTypeIsSet(boolean value)
public PrivilegeGrantInfo getGrantInfo()
public void setGrantInfo(PrivilegeGrantInfo grantInfo)
public void unsetGrantInfo()
public boolean isSetGrantInfo()
public void setGrantInfoIsSet(boolean value)
public void setFieldValue(HiveObjectPrivilege._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>public Object getFieldValue(HiveObjectPrivilege._Fields field)
getFieldValue in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>public boolean isSet(HiveObjectPrivilege._Fields field)
isSet in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>public boolean equals(HiveObjectPrivilege that)
public int compareTo(HiveObjectPrivilege other)
compareTo in interface Comparable<HiveObjectPrivilege>public HiveObjectPrivilege._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._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<HiveObjectPrivilege,HiveObjectPrivilege._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.