Package org.rocksdb

Class CompactionJobInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CompactionJobInfo
    extends RocksObject
    • Constructor Detail

      • CompactionJobInfo

        public CompactionJobInfo()
    • Method Detail

      • columnFamilyName

        public byte[] columnFamilyName()
        Get the name of the column family where the compaction happened.
        Returns:
        the name of the column family
      • status

        public Status status()
        Get the status indicating whether the compaction was successful or not.
        Returns:
        the status
      • threadId

        public long threadId()
        Get the id of the thread that completed this compaction job.
        Returns:
        the id of the thread
      • jobId

        public int jobId()
        Get the job id, which is unique in the same thread.
        Returns:
        the id of the thread
      • baseInputLevel

        public int baseInputLevel()
        Get the smallest input level of the compaction.
        Returns:
        the input level
      • outputLevel

        public int outputLevel()
        Get the output level of the compaction.
        Returns:
        the output level
      • inputFiles

        public java.util.List<java.lang.String> inputFiles()
        Get the names of the compaction input files.
        Returns:
        the names of the input files.
      • outputFiles

        public java.util.List<java.lang.String> outputFiles()
        Get the names of the compaction output files.
        Returns:
        the names of the output files.
      • tableProperties

        public java.util.Map<java.lang.String,​TableProperties> tableProperties()
        Get the table properties for the input and output tables. The map is keyed by values from inputFiles() and outputFiles().
        Returns:
        the table properties
      • compactionReason

        public CompactionReason compactionReason()
        Get the Reason for running the compaction.
        Returns:
        the reason.
      • compression

        public CompressionType compression()
        Get the compression algorithm used for output files.
        Returns:
        the compression algorithm
      • stats

        public CompactionJobStats stats()
        Get detailed information about this compaction.
        Returns:
        the detailed information, or null if not available.