Package org.rocksdb

Class CompactionJobInfo

All Implemented Interfaces:
AutoCloseable

public class CompactionJobInfo extends RocksObject
  • Constructor Details

    • CompactionJobInfo

      public CompactionJobInfo()
  • Method Details

    • 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 List<String> inputFiles()
      Get the names of the compaction input files.
      Returns:
      the names of the input files.
    • outputFiles

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

      public Map<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.
    • disposeInternal

      protected void disposeInternal(long handle)
      Specified by:
      disposeInternal in class RocksObject