Search in sources :

Example 1 with CacheTask

use of org.neo4j.consistency.checking.cache.CacheTask in project neo4j by neo4j.

the class RecordAccessStub method populateCache.

public void populateCache() {
    CacheTask action = new CacheTask.CacheNextRel(CheckStage.Stage3_NS_NextRel, cacheAccess, resourceIterable(new IterableWrapper<NodeRecord, Delta<NodeRecord>>(nodes.values()) {

        @Override
        protected NodeRecord underlyingObjectToObject(Delta<NodeRecord> node) {
            return node.newRecord;
        }
    }));
    action.run();
}
Also used : NodeRecord(org.neo4j.kernel.impl.store.record.NodeRecord) CacheTask(org.neo4j.consistency.checking.cache.CacheTask) IterableWrapper(org.neo4j.helpers.collection.IterableWrapper)

Aggregations

CacheTask (org.neo4j.consistency.checking.cache.CacheTask)1 IterableWrapper (org.neo4j.helpers.collection.IterableWrapper)1 NodeRecord (org.neo4j.kernel.impl.store.record.NodeRecord)1