public class DefaultCacheAccess extends Object implements CacheAccess
CacheAccess that uses PackedMultiFieldCache for cache.CacheAccess.Client| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_QUEUE_SIZE |
EMPTY, EMPTY_CLIENT| Constructor and Description |
|---|
DefaultCacheAccess(Counts counts,
int threads) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears all cached values.
|
CacheAccess.Client |
client() |
boolean |
isForward()
A flag for record checkers using this cache, where cached values are treated differently if
we're scanning through a store forwards or backwards.
|
void |
prepareForProcessingOfSingleStore(long recordsPerCpu) |
void |
setCacheSlotSizes(int... slotSizes)
Sets the slot sizes of the cached values.
|
void |
setForward(boolean forward)
Tells this
CacheAccess whether or not the current stage, i.e is scanning forwards or backwards
through a store or not. |
public static final int DEFAULT_QUEUE_SIZE
public DefaultCacheAccess(Counts counts, int threads)
public CacheAccess.Client client()
client in interface CacheAccessCacheAccess.Client for the current Thread.public void clearCache()
CacheAccessclearCache in interface CacheAccesspublic void setCacheSlotSizes(int... slotSizes)
CacheAccesssetCacheSlotSizes in interface CacheAccessslotSizes - defines how many and how big the slots are for cached values that are put after this call.public void setForward(boolean forward)
CacheAccessCacheAccess whether or not the current stage, i.e is scanning forwards or backwards
through a store or not. The cached values are treated differently depending on which. This is due to
the double-linked nature of some stores, specifically the relationship store.setForward in interface CacheAccessforward - true if the current scanning is forwards, otherwise it's backwards.public boolean isForward()
CacheAccessisForward in interface CacheAccesstrue if the scanning is currently set to go forward.public void prepareForProcessingOfSingleStore(long recordsPerCpu)
prepareForProcessingOfSingleStore in interface CacheAccessCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.