Class LockComponent

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

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

  • Constructor Details

    • LockComponent

      public LockComponent()
    • LockComponent

      public LockComponent(LockType type, LockLevel level, String dbname)
    • LockComponent

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

    • deepCopy

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

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

      public LockType getType()
      See Also:
    • setType

      public LockComponent setType(LockType type)
      See Also:
    • unsetType

      public void unsetType()
    • isSetType

      public boolean isSetType()
      Returns true if field type is set (has been assigned a value) and false otherwise
    • setTypeIsSet

      public void setTypeIsSet(boolean value)
    • getLevel

      public LockLevel getLevel()
      See Also:
    • setLevel

      public LockComponent setLevel(LockLevel level)
      See Also:
    • unsetLevel

      public void unsetLevel()
    • isSetLevel

      public boolean isSetLevel()
      Returns true if field level is set (has been assigned a value) and false otherwise
    • setLevelIsSet

      public void setLevelIsSet(boolean value)
    • getDbname

      public String getDbname()
    • setDbname

      public LockComponent setDbname(String dbname)
    • unsetDbname

      public void unsetDbname()
    • isSetDbname

      public boolean isSetDbname()
      Returns true if field dbname is set (has been assigned a value) and false otherwise
    • setDbnameIsSet

      public void setDbnameIsSet(boolean value)
    • getTablename

      public String getTablename()
    • setTablename

      public LockComponent setTablename(String tablename)
    • unsetTablename

      public void unsetTablename()
    • isSetTablename

      public boolean isSetTablename()
      Returns true if field tablename is set (has been assigned a value) and false otherwise
    • setTablenameIsSet

      public void setTablenameIsSet(boolean value)
    • getPartitionname

      public String getPartitionname()
    • setPartitionname

      public LockComponent setPartitionname(String partitionname)
    • unsetPartitionname

      public void unsetPartitionname()
    • isSetPartitionname

      public boolean isSetPartitionname()
      Returns true if field partitionname is set (has been assigned a value) and false otherwise
    • setPartitionnameIsSet

      public void setPartitionnameIsSet(boolean value)
    • getOperationType

      public DataOperationType getOperationType()
      See Also:
    • setOperationType

      public LockComponent setOperationType(DataOperationType operationType)
      See Also:
    • unsetOperationType

      public void unsetOperationType()
    • isSetOperationType

      public boolean isSetOperationType()
      Returns true if field operationType is set (has been assigned a value) and false otherwise
    • setOperationTypeIsSet

      public void setOperationTypeIsSet(boolean value)
    • isIsTransactional

      public boolean isIsTransactional()
    • setIsTransactional

      public LockComponent setIsTransactional(boolean isTransactional)
    • unsetIsTransactional

      public void unsetIsTransactional()
    • isSetIsTransactional

      public boolean isSetIsTransactional()
      Returns true if field isTransactional is set (has been assigned a value) and false otherwise
    • setIsTransactionalIsSet

      public void setIsTransactionalIsSet(boolean value)
    • isIsDynamicPartitionWrite

      public boolean isIsDynamicPartitionWrite()
    • setIsDynamicPartitionWrite

      public LockComponent setIsDynamicPartitionWrite(boolean isDynamicPartitionWrite)
    • unsetIsDynamicPartitionWrite

      public void unsetIsDynamicPartitionWrite()
    • isSetIsDynamicPartitionWrite

      public boolean isSetIsDynamicPartitionWrite()
      Returns true if field isDynamicPartitionWrite is set (has been assigned a value) and false otherwise
    • setIsDynamicPartitionWriteIsSet

      public void setIsDynamicPartitionWriteIsSet(boolean value)
    • setFieldValue

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

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

      public boolean isSet(LockComponent._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<LockComponent,LockComponent._Fields>
    • equals

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

      public boolean equals(LockComponent that)
    • hashCode

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

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

      public LockComponent._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<LockComponent,LockComponent._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