Package org.rocksdb

Class FlushJobInfo


  • public class FlushJobInfo
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      long getColumnFamilyId()
      Get the id of the column family.
      java.lang.String getColumnFamilyName()
      Get the name of the column family.
      java.lang.String getFilePath()
      Get the path to the newly created file.
      FlushReason getFlushReason()
      Get the reason for initiating the flush.
      int getJobId()
      Get the job id, which is unique in the same thread.
      long getLargestSeqno()
      Get the largest sequence number in the newly created file.
      long getSmallestSeqno()
      Get the smallest sequence number in the newly created file.
      TableProperties getTableProperties()
      Get the Table properties of the table being flushed.
      long getThreadId()
      Get the id of the thread that completed this flush job.
      int hashCode()  
      boolean isTriggeredWritesSlowdown()
      Determine if rocksdb is currently slowing-down all writes to prevent creating too many Level 0 files as compaction seems not able to catch up the write request speed.
      boolean isTriggeredWritesStop()
      Determine if rocksdb is currently blocking any writes to prevent creating more L0 files.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getColumnFamilyId

        public long getColumnFamilyId()
        Get the id of the column family.
        Returns:
        the id of the column family
      • getColumnFamilyName

        public java.lang.String getColumnFamilyName()
        Get the name of the column family.
        Returns:
        the name of the column family
      • getFilePath

        public java.lang.String getFilePath()
        Get the path to the newly created file.
        Returns:
        the path to the newly created file
      • getThreadId

        public long getThreadId()
        Get the id of the thread that completed this flush job.
        Returns:
        the id of the thread that completed this flush job
      • getJobId

        public int getJobId()
        Get the job id, which is unique in the same thread.
        Returns:
        the job id
      • isTriggeredWritesSlowdown

        public boolean isTriggeredWritesSlowdown()
        Determine if rocksdb is currently slowing-down all writes to prevent creating too many Level 0 files as compaction seems not able to catch up the write request speed. This indicates that there are too many files in Level 0.
        Returns:
        true if rocksdb is currently slowing-down all writes, false otherwise
      • isTriggeredWritesStop

        public boolean isTriggeredWritesStop()
        Determine if rocksdb is currently blocking any writes to prevent creating more L0 files. This indicates that there are too many files in level 0. Compactions should try to compact L0 files down to lower levels as soon as possible.
        Returns:
        true if rocksdb is currently blocking any writes, false otherwise
      • getSmallestSeqno

        public long getSmallestSeqno()
        Get the smallest sequence number in the newly created file.
        Returns:
        the smallest sequence number
      • getLargestSeqno

        public long getLargestSeqno()
        Get the largest sequence number in the newly created file.
        Returns:
        the largest sequence number
      • getTableProperties

        public TableProperties getTableProperties()
        Get the Table properties of the table being flushed.
        Returns:
        the Table properties of the table being flushed
      • getFlushReason

        public FlushReason getFlushReason()
        Get the reason for initiating the flush.
        Returns:
        the reason for initiating the flush.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object