Interface CacheEntry


public interface CacheEntry
Since:
2.0.0
  • Method Details

    • getBuffer

      byte[] getBuffer()
    • getIndex

      <T extends CacheEntry.Weighable> T getIndex(Supplier<T> supplier)
      Optionally cache what is returned by the supplier along with this cache entry. If caching what is returned by the supplier is not supported, its ok to return null.

      This method exists to support building indexes of frequently accessed cached data.

    • indexWeightChanged

      void indexWeightChanged()
      The object optionally stored by getIndex(Supplier) is a mutable object. Accumulo will call this method whenever the weight of that object changes.