public interface CacheEntry
Modifier and Type | Interface and Description |
---|---|
static interface |
CacheEntry.Weighable |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
<T extends CacheEntry.Weighable> |
getIndex(Supplier<T> supplier)
Optionally cache what is returned by the supplier along with this cache entry.
|
void |
indexWeightChanged()
The object optionally stored by
getIndex(Supplier) is a mutable object. |
byte[] getBuffer()
<T extends CacheEntry.Weighable> T getIndex(Supplier<T> supplier)
This method exists to support building indexes of frequently accessed cached data.
void indexWeightChanged()
getIndex(Supplier)
is a mutable object. Accumulo will
call this method whenever the weight of that object changes.Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.