Search in sources :

Example 11 with RecoveryCleanupWorkCollector

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);
}
Also used : RecoveryCleanupWorkCollector(org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector)

Example 12 with RecoveryCleanupWorkCollector

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);
}
Also used : RecoveryCleanupWorkCollector(org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector)

Aggregations

RecoveryCleanupWorkCollector (org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector)12 Monitors (org.neo4j.monitoring.Monitors)7 DefaultIdGeneratorFactory (org.neo4j.internal.id.DefaultIdGeneratorFactory)5 Path (java.nio.file.Path)4 Config (org.neo4j.configuration.Config)4 FileSystemAbstraction (org.neo4j.io.fs.FileSystemAbstraction)4 DatabaseLayout (org.neo4j.io.layout.DatabaseLayout)4 PageCache (org.neo4j.io.pagecache.PageCache)4 Log (org.neo4j.logging.Log)4 JobScheduler (org.neo4j.scheduler.JobScheduler)4 DelegatingTokenHolder (org.neo4j.token.DelegatingTokenHolder)4 TokenHolders (org.neo4j.token.TokenHolders)4 DatabaseReadOnlyChecker (org.neo4j.configuration.helpers.DatabaseReadOnlyChecker)3 DefaultIdController (org.neo4j.internal.id.DefaultIdController)3 PageCacheTracer (org.neo4j.io.pagecache.tracing.PageCacheTracer)3 IOException (java.io.IOException)2 List (java.util.List)2 GraphDatabaseInternalSettings (org.neo4j.configuration.GraphDatabaseInternalSettings)2 DatabaseReadOnlyChecker.writable (org.neo4j.configuration.helpers.DatabaseReadOnlyChecker.writable)2 CursorContext (org.neo4j.io.pagecache.context.CursorContext)2