Interface CacheEntry
-
public interface CacheEntry
- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CacheEntry.Weighable
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getBuffer()
<T extends CacheEntry.Weighable>
TgetIndex(Supplier<T> supplier)
Optionally cache what is returned by the supplier along with this cache entry.void
indexWeightChanged()
The object optionally stored bygetIndex(Supplier)
is a mutable object.
-
-
-
Method Detail
-
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 bygetIndex(Supplier)
is a mutable object. Accumulo will call this method whenever the weight of that object changes.
-
-