| Package | Description |
|---|---|
| org.rocksdb |
The RocksDB Java driver
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClockCache
Similar to
LRUCache, but based on the CLOCK algorithm with
better concurrent performance in some cases |
class |
LRUCache
Least Recently Used Cache
|
| Modifier and Type | Method and Description |
|---|---|
Cache |
DBOptions.rowCache() |
Cache |
DBOptionsInterface.rowCache()
A global cache for table-level rows.
|
Cache |
Options.rowCache() |
| Modifier and Type | Method and Description |
|---|---|
ColumnFamilyOptions |
ColumnFamilyOptions.optimizeForSmallDb(Cache cache) |
T |
ColumnFamilyOptionsInterface.optimizeForSmallDb(Cache cache)
Some functions that make it easier to optimize RocksDB
Use this if your DB is very small (like under 1GB) and you don't want to
spend lots of memory for memtables.
|
Options |
Options.optimizeForSmallDb(Cache cache) |
BlockBasedTableConfig |
BlockBasedTableConfig.setBlockCache(Cache blockCache)
Use the specified cache for blocks.
|
BlockBasedTableConfig |
BlockBasedTableConfig.setBlockCacheCompressed(Cache blockCacheCompressed)
Use the specified cache for compressed blocks.
|
DBOptions |
DBOptions.setRowCache(Cache rowCache) |
T |
DBOptionsInterface.setRowCache(Cache rowCache)
A global cache for table-level rows.
|
Options |
Options.setRowCache(Cache rowCache) |
| Modifier and Type | Method and Description |
|---|---|
static Map<MemoryUsageType,Long> |
MemoryUtil.getApproximateMemoryUsageByType(List<RocksDB> dbs,
Set<Cache> caches)
Returns the approximate memory usage of different types in the input
list of DBs and Cache set.
|
| Constructor and Description |
|---|
WriteBufferManager(long bufferSizeBytes,
Cache cache) |
WriteBufferManager(long bufferSizeBytes,
Cache cache,
boolean allowStall)
Construct a new instance of WriteBufferManager.
|
Copyright © 2022. All rights reserved.