Interface KeyCacheSupport<T extends SSTableReader & KeyCacheSupport<T>>
-
- All Known Implementing Classes:
BigTableReader
public interface KeyCacheSupport<T extends SSTableReader & KeyCacheSupport<T>>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
cacheKey(DecoratedKey key, AbstractRowIndexEntry info)
Caches a key only if cache is available.AbstractRowIndexEntry
deserializeKeyCacheValue(DataInputPlus input)
default AbstractRowIndexEntry
getCachedPosition(KeyCacheKey key, boolean updateStats)
Will return null if key is not found or cache is not available.default AbstractRowIndexEntry
getCachedPosition(DecoratedKey key, boolean updateStats)
Will return null if key is not found or cache is not available.default KeyCacheKey
getCacheKey(java.nio.ByteBuffer key)
default KeyCacheKey
getCacheKey(DecoratedKey key)
KeyCache
getKeyCache()
ClusteringBound<?>
getLowerBoundPrefixFromCache(DecoratedKey partitionKey, boolean isReversed)
Should quickly get a lower bound prefix from cache only if everything is already availabe in memory and does not need to be loaded from disk.static boolean
isSupportedBy(SSTableFormat<?,?> format)
-
-
-
Method Detail
-
getKeyCache
@Nonnull KeyCache getKeyCache()
-
getLowerBoundPrefixFromCache
@Nullable ClusteringBound<?> getLowerBoundPrefixFromCache(DecoratedKey partitionKey, boolean isReversed)
Should quickly get a lower bound prefix from cache only if everything is already availabe in memory and does not need to be loaded from disk.
-
getCacheKey
@Nonnull default KeyCacheKey getCacheKey(java.nio.ByteBuffer key)
-
getCacheKey
@Nonnull default KeyCacheKey getCacheKey(DecoratedKey key)
-
getCachedPosition
@Nullable default AbstractRowIndexEntry getCachedPosition(DecoratedKey key, boolean updateStats)
Will return null if key is not found or cache is not available.
-
getCachedPosition
@Nullable default AbstractRowIndexEntry getCachedPosition(KeyCacheKey key, boolean updateStats)
Will return null if key is not found or cache is not available.
-
cacheKey
default void cacheKey(@Nonnull DecoratedKey key, @Nonnull AbstractRowIndexEntry info)
Caches a key only if cache is available.
-
deserializeKeyCacheValue
@Nonnull AbstractRowIndexEntry deserializeKeyCacheValue(@Nonnull DataInputPlus input) throws java.io.IOException
- Throws:
java.io.IOException
-
isSupportedBy
static boolean isSupportedBy(SSTableFormat<?,?> format)
-
-