Package org.rocksdb

Class TableProperties

java.lang.Object
org.rocksdb.TableProperties

public class TableProperties extends Object
TableProperties contains read-only properties of its associated table.
  • Method Details

    • getDataSize

      public long getDataSize()
      Get the total size of all data blocks.
      Returns:
      the total size of all data blocks.
    • getIndexSize

      public long getIndexSize()
      Get the size of index block.
      Returns:
      the size of index block.
    • getIndexPartitions

      public long getIndexPartitions()
      Get the total number of index partitions if IndexType.kTwoLevelIndexSearch is used.
      Returns:
      the total number of index partitions.
    • getTopLevelIndexSize

      public long getTopLevelIndexSize()
      Size of the top-level index if IndexType.kTwoLevelIndexSearch is used.
      Returns:
      the size of the top-level index.
    • getIndexKeyIsUserKey

      public long getIndexKeyIsUserKey()
      Whether the index key is user key. Otherwise it includes 8 byte of sequence number added by internal key format.
      Returns:
      the index key
    • getIndexValueIsDeltaEncoded

      public long getIndexValueIsDeltaEncoded()
      Whether delta encoding is used to encode the index values.
      Returns:
      whether delta encoding is used to encode the index values.
    • getFilterSize

      public long getFilterSize()
      Get the size of filter block.
      Returns:
      the size of filter block.
    • getRawKeySize

      public long getRawKeySize()
      Get the total raw key size.
      Returns:
      the total raw key size.
    • getRawValueSize

      public long getRawValueSize()
      Get the total raw value size.
      Returns:
      the total raw value size.
    • getNumDataBlocks

      public long getNumDataBlocks()
      Get the number of blocks in this table.
      Returns:
      the number of blocks in this table.
    • getNumEntries

      public long getNumEntries()
      Get the number of entries in this table.
      Returns:
      the number of entries in this table.
    • getNumDeletions

      public long getNumDeletions()
      Get the number of deletions in the table.
      Returns:
      the number of deletions in the table.
    • getNumMergeOperands

      public long getNumMergeOperands()
      Get the number of merge operands in the table.
      Returns:
      the number of merge operands in the table.
    • getNumRangeDeletions

      public long getNumRangeDeletions()
      Get the number of range deletions in this table.
      Returns:
      the number of range deletions in this table.
    • getFormatVersion

      public long getFormatVersion()
      Get the format version, reserved for backward compatibility.
      Returns:
      the format version.
    • getFixedKeyLen

      public long getFixedKeyLen()
      Get the length of the keys.
      Returns:
      0 when the key is variable length, otherwise number of bytes for each key.
    • getColumnFamilyId

      public long getColumnFamilyId()
      Get the ID of column family for this SST file, corresponding to the column family identified by getColumnFamilyName().
      Returns:
      the id of the column family.
    • getCreationTime

      public long getCreationTime()
      The time when the SST file was created. Since SST files are immutable, this is equivalent to last modified time.
      Returns:
      the created time.
    • getOldestKeyTime

      public long getOldestKeyTime()
      Get the timestamp of the earliest key.
      Returns:
      0 means unknown, otherwise the timestamp.
    • getSlowCompressionEstimatedDataSize

      public long getSlowCompressionEstimatedDataSize()
      Get the estimated size of data blocks compressed with a relatively slower compression algorithm.
      Returns:
      0 means unknown, otherwise the timestamp.
    • getFastCompressionEstimatedDataSize

      public long getFastCompressionEstimatedDataSize()
      Get the estimated size of data blocks compressed with a relatively faster compression algorithm.
      Returns:
      0 means unknown, otherwise the timestamp.
    • getColumnFamilyName

      public byte[] getColumnFamilyName()
      Get the name of the column family with which this SST file is associated.
      Returns:
      the name of the column family, or null if the column family is unknown.
    • getFilterPolicyName

      public String getFilterPolicyName()
      Get the name of the filter policy used in this table.
      Returns:
      the name of the filter policy, or null if no filter policy is used.
    • getComparatorName

      public String getComparatorName()
      Get the name of the comparator used in this table.
      Returns:
      the name of the comparator.
    • getMergeOperatorName

      public String getMergeOperatorName()
      Get the name of the merge operator used in this table.
      Returns:
      the name of the merge operator, or null if no merge operator is used.
    • getPrefixExtractorName

      public String getPrefixExtractorName()
      Get the name of the prefix extractor used in this table.
      Returns:
      the name of the prefix extractor, or null if no prefix extractor is used.
    • getPropertyCollectorsNames

      public String getPropertyCollectorsNames()
      Get the names of the property collectors factories used in this table.
      Returns:
      the names of the property collector factories separated by commas, e.g. {collector_name[1]},{collector_name[2]},...
    • getCompressionName

      public String getCompressionName()
      Get the name of the compression algorithm used to compress the SST files.
      Returns:
      the name of the compression algorithm.
    • getUserCollectedProperties

      public Map<String,String> getUserCollectedProperties()
      Get the user collected properties.
      Returns:
      the user collected properties.
    • getReadableProperties

      public Map<String,String> getReadableProperties()
      Get the readable properties.
      Returns:
      the readable properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object