Package org.rocksdb
Class Cache
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ClockCache,HyperClockCache,LRUCache
-
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the memory size for the entries being pinned in cache.longgetUsage()Returns the memory size for the entries residing in cache.Methods inherited from class org.rocksdb.RocksObject
disposeInternal, disposeInternal, getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
Cache
protected Cache(long nativeHandle)
-
-
Method Details
-
getUsage
public long getUsage()Returns the memory size for the entries residing in cache.- Returns:
- cache usage size.
-
getPinnedUsage
public long getPinnedUsage()Returns the memory size for the entries being pinned in cache.- Returns:
- cache pinned usage size.
-