Class StorageDescriptor

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

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

  • Constructor Details

  • Method Details

    • deepCopy

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

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

      public int getColsSize()
    • getColsIterator

      public Iterator<FieldSchema> getColsIterator()
    • addToCols

      public void addToCols(FieldSchema elem)
    • getCols

      public List<FieldSchema> getCols()
    • setCols

      public StorageDescriptor setCols(List<FieldSchema> cols)
    • unsetCols

      public void unsetCols()
    • isSetCols

      public boolean isSetCols()
      Returns true if field cols is set (has been assigned a value) and false otherwise
    • setColsIsSet

      public void setColsIsSet(boolean value)
    • getLocation

      public String getLocation()
    • setLocation

      public StorageDescriptor setLocation(String location)
    • unsetLocation

      public void unsetLocation()
    • isSetLocation

      public boolean isSetLocation()
      Returns true if field location is set (has been assigned a value) and false otherwise
    • setLocationIsSet

      public void setLocationIsSet(boolean value)
    • getInputFormat

      public String getInputFormat()
    • setInputFormat

      public StorageDescriptor setInputFormat(String inputFormat)
    • unsetInputFormat

      public void unsetInputFormat()
    • isSetInputFormat

      public boolean isSetInputFormat()
      Returns true if field inputFormat is set (has been assigned a value) and false otherwise
    • setInputFormatIsSet

      public void setInputFormatIsSet(boolean value)
    • getOutputFormat

      public String getOutputFormat()
    • setOutputFormat

      public StorageDescriptor setOutputFormat(String outputFormat)
    • unsetOutputFormat

      public void unsetOutputFormat()
    • isSetOutputFormat

      public boolean isSetOutputFormat()
      Returns true if field outputFormat is set (has been assigned a value) and false otherwise
    • setOutputFormatIsSet

      public void setOutputFormatIsSet(boolean value)
    • isCompressed

      public boolean isCompressed()
    • setCompressed

      public StorageDescriptor setCompressed(boolean compressed)
    • unsetCompressed

      public void unsetCompressed()
    • isSetCompressed

      public boolean isSetCompressed()
      Returns true if field compressed is set (has been assigned a value) and false otherwise
    • setCompressedIsSet

      public void setCompressedIsSet(boolean value)
    • getNumBuckets

      public int getNumBuckets()
    • setNumBuckets

      public StorageDescriptor setNumBuckets(int numBuckets)
    • unsetNumBuckets

      public void unsetNumBuckets()
    • isSetNumBuckets

      public boolean isSetNumBuckets()
      Returns true if field numBuckets is set (has been assigned a value) and false otherwise
    • setNumBucketsIsSet

      public void setNumBucketsIsSet(boolean value)
    • getSerdeInfo

      public SerDeInfo getSerdeInfo()
    • setSerdeInfo

      public StorageDescriptor setSerdeInfo(SerDeInfo serdeInfo)
    • unsetSerdeInfo

      public void unsetSerdeInfo()
    • isSetSerdeInfo

      public boolean isSetSerdeInfo()
      Returns true if field serdeInfo is set (has been assigned a value) and false otherwise
    • setSerdeInfoIsSet

      public void setSerdeInfoIsSet(boolean value)
    • getBucketColsSize

      public int getBucketColsSize()
    • getBucketColsIterator

      public Iterator<String> getBucketColsIterator()
    • addToBucketCols

      public void addToBucketCols(String elem)
    • getBucketCols

      public List<String> getBucketCols()
    • setBucketCols

      public StorageDescriptor setBucketCols(List<String> bucketCols)
    • unsetBucketCols

      public void unsetBucketCols()
    • isSetBucketCols

      public boolean isSetBucketCols()
      Returns true if field bucketCols is set (has been assigned a value) and false otherwise
    • setBucketColsIsSet

      public void setBucketColsIsSet(boolean value)
    • getSortColsSize

      public int getSortColsSize()
    • getSortColsIterator

      public Iterator<Order> getSortColsIterator()
    • addToSortCols

      public void addToSortCols(Order elem)
    • getSortCols

      public List<Order> getSortCols()
    • setSortCols

      public StorageDescriptor setSortCols(List<Order> sortCols)
    • unsetSortCols

      public void unsetSortCols()
    • isSetSortCols

      public boolean isSetSortCols()
      Returns true if field sortCols is set (has been assigned a value) and false otherwise
    • setSortColsIsSet

      public void setSortColsIsSet(boolean value)
    • getParametersSize

      public int getParametersSize()
    • putToParameters

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

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

      public StorageDescriptor 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)
    • getSkewedInfo

      public SkewedInfo getSkewedInfo()
    • setSkewedInfo

      public StorageDescriptor setSkewedInfo(SkewedInfo skewedInfo)
    • unsetSkewedInfo

      public void unsetSkewedInfo()
    • isSetSkewedInfo

      public boolean isSetSkewedInfo()
      Returns true if field skewedInfo is set (has been assigned a value) and false otherwise
    • setSkewedInfoIsSet

      public void setSkewedInfoIsSet(boolean value)
    • isStoredAsSubDirectories

      public boolean isStoredAsSubDirectories()
    • setStoredAsSubDirectories

      public StorageDescriptor setStoredAsSubDirectories(boolean storedAsSubDirectories)
    • unsetStoredAsSubDirectories

      public void unsetStoredAsSubDirectories()
    • isSetStoredAsSubDirectories

      public boolean isSetStoredAsSubDirectories()
      Returns true if field storedAsSubDirectories is set (has been assigned a value) and false otherwise
    • setStoredAsSubDirectoriesIsSet

      public void setStoredAsSubDirectoriesIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(StorageDescriptor that)
    • hashCode

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

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

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