Interface CacheEntry
public interface CacheEntry
- Since:
- 2.0.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
<T extends CacheEntry.Weighable>
TOptionally cache what is returned by the supplier along with this cache entry.void
The object optionally stored bygetIndex(Supplier)
is a mutable object.
-
Method Details
-
getBuffer
byte[] getBuffer() -
getIndex
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 bygetIndex(Supplier)
is a mutable object. Accumulo will call this method whenever the weight of that object changes.
-