Class RocksDBUtils
java.lang.Object
com.linkedin.venice.store.rocksdb.RocksDBUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
With level_compaction_dynamic_level_bytes to be false, the stable LSM structure is not guaranteed, so the maximum overhead could be around 2.111 for hybrid stores. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
composePartitionDbDir
(String dbDir, String topicName, int partitionId) static String
composeSnapshotDir
(String composePartitionDbDir) static String
composeSnapshotDir
(String dbDir, String topicName, int partitionId) static String
composeStoreDbDir
(String dbDir, String storeName) static String
composeTempRMDSSTFileDir
(String dbDir, String topicName, int partitionId) static String
composeTempRMDSSTFileName
(int fileNo) static String
composeTempSSTFileDir
(String dbDir, String topicName, int partitionId) static String
composeTempSSTFileName
(int fileNo) static void
deletePartitionDir
(String baseDir, String storeName, int version, int partition) Deletes the files associated with the specified store, version, and partition.static int
extractTempRMDSSTFileNo
(String fileName) static int
extractTempSSTFileNo
(String fileName) static String
getPartitionDbName
(String storeName, int partitionId) static boolean
isTempRMDSSTFile
(String fileName) static boolean
isTempSSTFile
(String fileName) static int
parsePartitionIdFromPartitionDbName
(String partitionDbName) static String
parseStoreNameFromPartitionDbName
(String partitionDbName)
-
Field Details
-
ROCKSDB_OVERHEAD_RATIO_FOR_HYBRID_STORE
public static final double ROCKSDB_OVERHEAD_RATIO_FOR_HYBRID_STOREWith level_compaction_dynamic_level_bytes to be false, the stable LSM structure is not guaranteed, so the maximum overhead could be around 2.111 for hybrid stores. Check https://github.com/facebook/rocksdb/wiki/Leveled-Compaction- See Also:
-
-
Constructor Details
-
RocksDBUtils
public RocksDBUtils()
-
-
Method Details
-
getPartitionDbName
-
parseStoreNameFromPartitionDbName
-
parsePartitionIdFromPartitionDbName
-
composeStoreDbDir
-
composePartitionDbDir
-
composeSnapshotDir
-
composeSnapshotDir
-
composeTempSSTFileDir
-
composeTempRMDSSTFileDir
-
composeTempSSTFileName
-
composeTempRMDSSTFileName
-
isTempSSTFile
-
isTempRMDSSTFile
-
extractTempSSTFileNo
-
extractTempRMDSSTFileNo
-
deletePartitionDir
Deletes the files associated with the specified store, version, and partition.- Parameters:
storeName
- the name of the storeversion
- the version number of the storepartition
- the partition ID
-