Class Table

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

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

    • metaDataMap

      public static final Map<Table._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

  • Method Details

    • deepCopy

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

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

      public String getTableName()
    • setTableName

      public Table 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)
    • getDbName

      public String getDbName()
    • setDbName

      public Table 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)
    • getOwner

      public String getOwner()
    • setOwner

      public Table setOwner(String owner)
    • unsetOwner

      public void unsetOwner()
    • isSetOwner

      public boolean isSetOwner()
      Returns true if field owner is set (has been assigned a value) and false otherwise
    • setOwnerIsSet

      public void setOwnerIsSet(boolean value)
    • getCreateTime

      public int getCreateTime()
    • setCreateTime

      public Table 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)
    • getLastAccessTime

      public int getLastAccessTime()
    • setLastAccessTime

      public Table setLastAccessTime(int lastAccessTime)
    • unsetLastAccessTime

      public void unsetLastAccessTime()
    • isSetLastAccessTime

      public boolean isSetLastAccessTime()
      Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise
    • setLastAccessTimeIsSet

      public void setLastAccessTimeIsSet(boolean value)
    • getRetention

      public int getRetention()
    • setRetention

      public Table setRetention(int retention)
    • unsetRetention

      public void unsetRetention()
    • isSetRetention

      public boolean isSetRetention()
      Returns true if field retention is set (has been assigned a value) and false otherwise
    • setRetentionIsSet

      public void setRetentionIsSet(boolean value)
    • getSd

      public StorageDescriptor getSd()
    • setSd

      public Table setSd(StorageDescriptor sd)
    • unsetSd

      public void unsetSd()
    • isSetSd

      public boolean isSetSd()
      Returns true if field sd is set (has been assigned a value) and false otherwise
    • setSdIsSet

      public void setSdIsSet(boolean value)
    • getPartitionKeysSize

      public int getPartitionKeysSize()
    • getPartitionKeysIterator

      public Iterator<FieldSchema> getPartitionKeysIterator()
    • addToPartitionKeys

      public void addToPartitionKeys(FieldSchema elem)
    • getPartitionKeys

      public List<FieldSchema> getPartitionKeys()
    • setPartitionKeys

      public Table setPartitionKeys(List<FieldSchema> partitionKeys)
    • unsetPartitionKeys

      public void unsetPartitionKeys()
    • isSetPartitionKeys

      public boolean isSetPartitionKeys()
      Returns true if field partitionKeys is set (has been assigned a value) and false otherwise
    • setPartitionKeysIsSet

      public void setPartitionKeysIsSet(boolean value)
    • getParametersSize

      public int getParametersSize()
    • putToParameters

      public void putToParameters(String key, String val)
    • getParameters

      public Map<String,String> getParameters()
    • setParameters

      public Table setParameters(Map<String,String> parameters)
    • unsetParameters

      public void unsetParameters()
    • isSetParameters

      public boolean isSetParameters()
      Returns true if field parameters is set (has been assigned a value) and false otherwise
    • setParametersIsSet

      public void setParametersIsSet(boolean value)
    • getViewOriginalText

      public String getViewOriginalText()
    • setViewOriginalText

      public Table setViewOriginalText(String viewOriginalText)
    • unsetViewOriginalText

      public void unsetViewOriginalText()
    • isSetViewOriginalText

      public boolean isSetViewOriginalText()
      Returns true if field viewOriginalText is set (has been assigned a value) and false otherwise
    • setViewOriginalTextIsSet

      public void setViewOriginalTextIsSet(boolean value)
    • getViewExpandedText

      public String getViewExpandedText()
    • setViewExpandedText

      public Table setViewExpandedText(String viewExpandedText)
    • unsetViewExpandedText

      public void unsetViewExpandedText()
    • isSetViewExpandedText

      public boolean isSetViewExpandedText()
      Returns true if field viewExpandedText is set (has been assigned a value) and false otherwise
    • setViewExpandedTextIsSet

      public void setViewExpandedTextIsSet(boolean value)
    • getTableType

      public String getTableType()
    • setTableType

      public Table setTableType(String tableType)
    • unsetTableType

      public void unsetTableType()
    • isSetTableType

      public boolean isSetTableType()
      Returns true if field tableType is set (has been assigned a value) and false otherwise
    • setTableTypeIsSet

      public void setTableTypeIsSet(boolean value)
    • getPrivileges

      public PrincipalPrivilegeSet getPrivileges()
    • setPrivileges

      public Table setPrivileges(PrincipalPrivilegeSet privileges)
    • unsetPrivileges

      public void unsetPrivileges()
    • isSetPrivileges

      public boolean isSetPrivileges()
      Returns true if field privileges is set (has been assigned a value) and false otherwise
    • setPrivilegesIsSet

      public void setPrivilegesIsSet(boolean value)
    • isTemporary

      public boolean isTemporary()
    • setTemporary

      public Table setTemporary(boolean temporary)
    • unsetTemporary

      public void unsetTemporary()
    • isSetTemporary

      public boolean isSetTemporary()
      Returns true if field temporary is set (has been assigned a value) and false otherwise
    • setTemporaryIsSet

      public void setTemporaryIsSet(boolean value)
    • isRewriteEnabled

      public boolean isRewriteEnabled()
    • setRewriteEnabled

      public Table setRewriteEnabled(boolean rewriteEnabled)
    • unsetRewriteEnabled

      public void unsetRewriteEnabled()
    • isSetRewriteEnabled

      public boolean isSetRewriteEnabled()
      Returns true if field rewriteEnabled is set (has been assigned a value) and false otherwise
    • setRewriteEnabledIsSet

      public void setRewriteEnabledIsSet(boolean value)
    • getCreationMetadata

      public CreationMetadata getCreationMetadata()
    • setCreationMetadata

      public Table setCreationMetadata(CreationMetadata creationMetadata)
    • unsetCreationMetadata

      public void unsetCreationMetadata()
    • isSetCreationMetadata

      public boolean isSetCreationMetadata()
      Returns true if field creationMetadata is set (has been assigned a value) and false otherwise
    • setCreationMetadataIsSet

      public void setCreationMetadataIsSet(boolean value)
    • getCatName

      public String getCatName()
    • setCatName

      public Table setCatName(String catName)
    • unsetCatName

      public void unsetCatName()
    • isSetCatName

      public boolean isSetCatName()
      Returns true if field catName is set (has been assigned a value) and false otherwise
    • setCatNameIsSet

      public void setCatNameIsSet(boolean value)
    • getOwnerType

      public PrincipalType getOwnerType()
      See Also:
    • setOwnerType

      public Table setOwnerType(PrincipalType ownerType)
      See Also:
    • unsetOwnerType

      public void unsetOwnerType()
    • isSetOwnerType

      public boolean isSetOwnerType()
      Returns true if field ownerType is set (has been assigned a value) and false otherwise
    • setOwnerTypeIsSet

      public void setOwnerTypeIsSet(boolean value)
    • getWriteId

      public long getWriteId()
    • setWriteId

      public Table setWriteId(long writeId)
    • unsetWriteId

      public void unsetWriteId()
    • isSetWriteId

      public boolean isSetWriteId()
      Returns true if field writeId is set (has been assigned a value) and false otherwise
    • setWriteIdIsSet

      public void setWriteIdIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(Table that)
    • hashCode

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

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

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