use of org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector in project neo4j by neo4j.
the class TokenIndexAccessorTest method createAccessor.
@Override
IndexAccessor createAccessor(PageCache pageCache) {
RecoveryCleanupWorkCollector cleanup = RecoveryCleanupWorkCollector.immediate();
DatabaseIndexContext context = DatabaseIndexContext.builder(pageCache, fs, DEFAULT_DATABASE_NAME).withReadOnlyChecker(writable()).build();
return new TokenIndexAccessor(context, DatabaseLayout.ofFlat(directory.homePath()), indexFiles, Config.defaults(), indexDescriptor, cleanup);
}
use of org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector in project neo4j by neo4j.
the class NativeIndexAccessorTest method createAccessor.
@Override
NativeIndexAccessor<GenericKey, NativeIndexValue> createAccessor(PageCache pageCache) {
RecoveryCleanupWorkCollector cleanup = RecoveryCleanupWorkCollector.immediate();
DatabaseIndexContext context = DatabaseIndexContext.builder(pageCache, fs, DEFAULT_DATABASE_NAME).withReadOnlyChecker(writable()).build();
return new GenericNativeIndexAccessor(context, indexFiles, layout, cleanup, indexDescriptor, spaceFillingCurveSettings, configuration, tokenNameLookup);
}
Aggregations