Class PrivilegeGrantInfo

java.lang.Object
io.trino.hive.thrift.metastore.PrivilegeGrantInfo
All Implemented Interfaces:
Serializable, Cloneable, Comparable<PrivilegeGrantInfo>, org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>, org.apache.thrift.TSerializable

@Generated("Autogenerated by Thrift Compiler (0.17.0)") public class PrivilegeGrantInfo extends Object implements org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>, Serializable, Cloneable, Comparable<PrivilegeGrantInfo>
See Also:
  • Field Details

  • Constructor Details

    • PrivilegeGrantInfo

      public PrivilegeGrantInfo()
    • PrivilegeGrantInfo

      public PrivilegeGrantInfo(String privilege, int createTime, String grantor, PrincipalType grantorType, boolean grantOption)
    • PrivilegeGrantInfo

      public PrivilegeGrantInfo(PrivilegeGrantInfo other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public PrivilegeGrantInfo deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>
    • getPrivilege

      public String getPrivilege()
    • setPrivilege

      public PrivilegeGrantInfo setPrivilege(String privilege)
    • unsetPrivilege

      public void unsetPrivilege()
    • isSetPrivilege

      public boolean isSetPrivilege()
      Returns true if field privilege is set (has been assigned a value) and false otherwise
    • setPrivilegeIsSet

      public void setPrivilegeIsSet(boolean value)
    • getCreateTime

      public int getCreateTime()
    • setCreateTime

      public PrivilegeGrantInfo setCreateTime(int createTime)
    • unsetCreateTime

      public void unsetCreateTime()
    • isSetCreateTime

      public boolean isSetCreateTime()
      Returns true if field createTime is set (has been assigned a value) and false otherwise
    • setCreateTimeIsSet

      public void setCreateTimeIsSet(boolean value)
    • getGrantor

      public String getGrantor()
    • setGrantor

      public PrivilegeGrantInfo setGrantor(String grantor)
    • unsetGrantor

      public void unsetGrantor()
    • isSetGrantor

      public boolean isSetGrantor()
      Returns true if field grantor is set (has been assigned a value) and false otherwise
    • setGrantorIsSet

      public void setGrantorIsSet(boolean value)
    • getGrantorType

      public PrincipalType getGrantorType()
      See Also:
    • setGrantorType

      public PrivilegeGrantInfo setGrantorType(PrincipalType grantorType)
      See Also:
    • unsetGrantorType

      public void unsetGrantorType()
    • isSetGrantorType

      public boolean isSetGrantorType()
      Returns true if field grantorType is set (has been assigned a value) and false otherwise
    • setGrantorTypeIsSet

      public void setGrantorTypeIsSet(boolean value)
    • isGrantOption

      public boolean isGrantOption()
    • setGrantOption

      public PrivilegeGrantInfo setGrantOption(boolean grantOption)
    • unsetGrantOption

      public void unsetGrantOption()
    • isSetGrantOption

      public boolean isSetGrantOption()
      Returns true if field grantOption is set (has been assigned a value) and false otherwise
    • setGrantOptionIsSet

      public void setGrantOptionIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(PrivilegeGrantInfo._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>
    • getFieldValue

      public Object getFieldValue(PrivilegeGrantInfo._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>
    • isSet

      public boolean isSet(PrivilegeGrantInfo._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(PrivilegeGrantInfo that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(PrivilegeGrantInfo other)
      Specified by:
      compareTo in interface Comparable<PrivilegeGrantInfo>
    • fieldForId

      public PrivilegeGrantInfo._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<PrivilegeGrantInfo,PrivilegeGrantInfo._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.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:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException