Interface KeyCacheSupport<T extends SSTableReader & KeyCacheSupport<T>>

    • 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)
      • 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.
      • deserializeKeyCacheValue

        @Nonnull
        AbstractRowIndexEntry deserializeKeyCacheValue​(@Nonnull
                                                       DataInputPlus input)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • isSupportedBy

        static boolean isSupportedBy​(SSTableFormat<?,​?> format)