Class Partition

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

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

    • metaDataMap

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

  • Method Details

    • deepCopy

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

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

      public int getValuesSize()
    • getValuesIterator

      public Iterator<String> getValuesIterator()
    • addToValues

      public void addToValues(String elem)
    • getValues

      public List<String> getValues()
    • setValues

      public Partition setValues(List<String> values)
    • unsetValues

      public void unsetValues()
    • isSetValues

      public boolean isSetValues()
      Returns true if field values is set (has been assigned a value) and false otherwise
    • setValuesIsSet

      public void setValuesIsSet(boolean value)
    • getDbName

      public String getDbName()
    • setDbName

      public Partition 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 Partition 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)
    • getCreateTime

      public int getCreateTime()
    • setCreateTime

      public Partition 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 Partition 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)
    • getSd

      public StorageDescriptor getSd()
    • setSd

      public Partition 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)
    • getParametersSize

      public int getParametersSize()
    • putToParameters

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

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

      public Partition 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)
    • getPrivileges

      public PrincipalPrivilegeSet getPrivileges()
    • setPrivileges

      public Partition 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)
    • getCatName

      public String getCatName()
    • setCatName

      public Partition 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)
    • getWriteId

      public long getWriteId()
    • setWriteId

      public Partition 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(Partition._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<Partition,Partition._Fields>
    • getFieldValue

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

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

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

      public boolean equals(Partition that)
    • hashCode

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

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

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