Package io.trino.hive.thrift.metastore
Class HiveObjectPrivilege
java.lang.Object
io.trino.hive.thrift.metastore.HiveObjectPrivilege
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<HiveObjectPrivilege>,org.apache.thrift.TBase<HiveObjectPrivilege,,HiveObjectPrivilege._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class HiveObjectPrivilege
extends Object
implements org.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>, Serializable, Cloneable, Comparable<HiveObjectPrivilege>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<HiveObjectPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionPerforms a deep copy on other.HiveObjectPrivilege(HiveObjectRef hiveObject, String principalName, PrincipalType principalType, PrivilegeGrantInfo grantInfo, String authorizer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(HiveObjectPrivilege other) deepCopy()booleanequals(HiveObjectPrivilege that) booleanfieldForId(int fieldId) inthashCode()booleanisSet(HiveObjectPrivilege._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field authorizer is set (has been assigned a value) and false otherwisebooleanReturns true if field grantInfo is set (has been assigned a value) and false otherwisebooleanReturns true if field hiveObject is set (has been assigned a value) and false otherwisebooleanReturns true if field principalName is set (has been assigned a value) and false otherwisebooleanReturns true if field principalType is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setAuthorizer(String authorizer) voidsetAuthorizerIsSet(boolean value) voidsetFieldValue(HiveObjectPrivilege._Fields field, Object value) setGrantInfo(PrivilegeGrantInfo grantInfo) voidsetGrantInfoIsSet(boolean value) setHiveObject(HiveObjectRef hiveObject) voidsetHiveObjectIsSet(boolean value) setPrincipalName(String principalName) voidsetPrincipalNameIsSet(boolean value) setPrincipalType(PrincipalType principalType) voidsetPrincipalTypeIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<HiveObjectPrivilege._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
HiveObjectPrivilege
public HiveObjectPrivilege() -
HiveObjectPrivilege
public HiveObjectPrivilege(HiveObjectRef hiveObject, String principalName, PrincipalType principalType, PrivilegeGrantInfo grantInfo, String authorizer) -
HiveObjectPrivilege
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>
-
getHiveObject
-
setHiveObject
-
unsetHiveObject
public void unsetHiveObject() -
isSetHiveObject
public boolean isSetHiveObject()Returns true if field hiveObject is set (has been assigned a value) and false otherwise -
setHiveObjectIsSet
public void setHiveObjectIsSet(boolean value) -
getPrincipalName
-
setPrincipalName
-
unsetPrincipalName
public void unsetPrincipalName() -
isSetPrincipalName
public boolean isSetPrincipalName()Returns true if field principalName is set (has been assigned a value) and false otherwise -
setPrincipalNameIsSet
public void setPrincipalNameIsSet(boolean value) -
getPrincipalType
- See Also:
-
setPrincipalType
- See Also:
-
unsetPrincipalType
public void unsetPrincipalType() -
isSetPrincipalType
public boolean isSetPrincipalType()Returns true if field principalType is set (has been assigned a value) and false otherwise -
setPrincipalTypeIsSet
public void setPrincipalTypeIsSet(boolean value) -
getGrantInfo
-
setGrantInfo
-
unsetGrantInfo
public void unsetGrantInfo() -
isSetGrantInfo
public boolean isSetGrantInfo()Returns true if field grantInfo is set (has been assigned a value) and false otherwise -
setGrantInfoIsSet
public void setGrantInfoIsSet(boolean value) -
getAuthorizer
-
setAuthorizer
-
unsetAuthorizer
public void unsetAuthorizer() -
isSetAuthorizer
public boolean isSetAuthorizer()Returns true if field authorizer is set (has been assigned a value) and false otherwise -
setAuthorizerIsSet
public void setAuthorizerIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<HiveObjectPrivilege>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<HiveObjectPrivilege,HiveObjectPrivilege._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-