Interface KeyCacheSupport<T extends SSTableReader & KeyCacheSupport<T>>
- All Known Implementing Classes:
BigTableReader
public interface KeyCacheSupport<T extends SSTableReader & KeyCacheSupport<T>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcacheKey(DecoratedKey key, AbstractRowIndexEntry info) Caches a key only if cache is available.default AbstractRowIndexEntrygetCachedPosition(KeyCacheKey key, boolean updateStats) Will return null if key is not found or cache is not available.default AbstractRowIndexEntrygetCachedPosition(DecoratedKey key, boolean updateStats) Will return null if key is not found or cache is not available.default KeyCacheKeygetCacheKey(ByteBuffer key) default KeyCacheKeygetCacheKey(DecoratedKey key) 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 booleanisSupportedBy(SSTableFormat<?, ?> format)
-
Method Details
-
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
-
getCacheKey
-
getCachedPosition
Will return null if key is not found or cache is not available. -
getCachedPosition
Will return null if key is not found or cache is not available. -
cacheKey
Caches a key only if cache is available. -
deserializeKeyCacheValue
@Nonnull AbstractRowIndexEntry deserializeKeyCacheValue(@Nonnull DataInputPlus input) throws IOException - Throws:
IOException
-
isSupportedBy
-