Package org.rocksdb
Class FlushJobInfo
- java.lang.Object
-
- org.rocksdb.FlushJobInfo
-
public class FlushJobInfo extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)longgetColumnFamilyId()Get the id of the column family.java.lang.StringgetColumnFamilyName()Get the name of the column family.java.lang.StringgetFilePath()Get the path to the newly created file.FlushReasongetFlushReason()Get the reason for initiating the flush.intgetJobId()Get the job id, which is unique in the same thread.longgetLargestSeqno()Get the largest sequence number in the newly created file.longgetSmallestSeqno()Get the smallest sequence number in the newly created file.TablePropertiesgetTableProperties()Get the Table properties of the table being flushed.longgetThreadId()Get the id of the thread that completed this flush job.inthashCode()booleanisTriggeredWritesSlowdown()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.booleanisTriggeredWritesStop()Determine if rocksdb is currently blocking any writes to prevent creating more L0 files.java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-