Package org.rocksdb
Class CompactionJobInfo
- java.lang.Object
-
- org.rocksdb.AbstractNativeReference
-
- org.rocksdb.AbstractImmutableNativeReference
-
- org.rocksdb.RocksObject
-
- org.rocksdb.CompactionJobInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CompactionJobInfo extends RocksObject
-
-
Field Summary
-
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_
-
Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_
-
-
Constructor Summary
Constructors Constructor Description CompactionJobInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbaseInputLevel()Get the smallest input level of the compaction.byte[]columnFamilyName()Get the name of the column family where the compaction happened.CompactionReasoncompactionReason()Get the Reason for running the compaction.CompressionTypecompression()Get the compression algorithm used for output files.protected voiddisposeInternal(long handle)java.util.List<java.lang.String>inputFiles()Get the names of the compaction input files.intjobId()Get the job id, which is unique in the same thread.java.util.List<java.lang.String>outputFiles()Get the names of the compaction output files.intoutputLevel()Get the output level of the compaction.CompactionJobStatsstats()Get detailed information about this compaction.Statusstatus()Get the status indicating whether the compaction was successful or not.java.util.Map<java.lang.String,TableProperties>tableProperties()Get the table properties for the input and output tables.longthreadId()Get the id of the thread that completed this compaction job.-
Methods inherited from class org.rocksdb.RocksObject
disposeInternal, getNativeHandle
-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
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 frominputFiles()andoutputFiles().- 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:
disposeInternalin classRocksObject
-
-