public static interface CacheAccess.Client
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache(long id)
Clears the cached values for the specified
id. |
long |
getFromCache(long id,
int slot)
Gets a cached value, put there with
putToCache(long, long...) or
putToCacheSingle(long, int, long). |
Iterable<org.neo4j.kernel.impl.store.record.PropertyRecord> |
getPropertiesFromCache() |
org.neo4j.kernel.impl.store.record.PropertyRecord |
getPropertyFromCache(long id)
|
void |
incAndGetCount(Counts.Type type)
Increases the count of the specified
type, for gathering statistics during a run. |
void |
putPropertiesToCache(Collection<org.neo4j.kernel.impl.store.record.PropertyRecord> properties)
Caches a
Collection of PropertyRecord for later checking. |
void |
putToCache(long id,
long... cacheFields)
Caches all values for an id, i.e.
|
void |
putToCacheSingle(long id,
int slot,
long value)
Caches a single value for an id and slot.
|
boolean |
withinBounds(long id)
Some consistency check stages splits the id range into segments, one per thread.
|
long getFromCache(long id,
int slot)
putToCache(long, long...) or
putToCacheSingle(long, int, long).id - the entity id this cached value is tied to.slot - which cache slot for this id.void putToCache(long id,
long... cacheFields)
id - the entity id these cached values will be tied to.cacheFields - the values to cache, one per slot.void putToCacheSingle(long id,
int slot,
long value)
id - the entity id this cached values will be tied to.slot - the slot for the given id.value - the value to cache for this id and slot.void clearCache(long id)
id.id - the entity id to clear the cached values for.void putPropertiesToCache(Collection<org.neo4j.kernel.impl.store.record.PropertyRecord> properties)
Collection of PropertyRecord for later checking.properties - property records to cache for this thread.org.neo4j.kernel.impl.store.record.PropertyRecord getPropertyFromCache(long id)
id - the property record id to look for.PropertyRecord id, or null if not found.Iterable<org.neo4j.kernel.impl.store.record.PropertyRecord> getPropertiesFromCache()
void incAndGetCount(Counts.Type type)
type, for gathering statistics during a run.type - counts type.boolean withinBounds(long id)
CacheAccess.prepareForProcessingOfSingleStore(long) and checker,
per thread, using this method.id - the record id to check whether or not to process for this thread.true if the thread represented by this client should process the record
of the given id, otherwise false.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.