Search in sources :

Example 1 with StandardConfiguration

use of org.neo4j.gis.spatial.index.curves.StandardConfiguration in project neo4j by neo4j.

the class GenericAccessorPointsTest method setup.

@BeforeEach
void setup() {
    IndexDirectoryStructure directoryStructure = IndexDirectoryStructure.directoriesByProvider(directory.homePath()).forProvider(DESCRIPTOR);
    descriptor = TestIndexDescriptorFactory.forLabel(1, 1);
    IndexFiles indexFiles = new IndexFiles.Directory(fs, directoryStructure, descriptor.getId());
    GenericLayout layout = new GenericLayout(1, indexSettings);
    RecoveryCleanupWorkCollector collector = RecoveryCleanupWorkCollector.ignore();
    DatabaseIndexContext databaseIndexContext = DatabaseIndexContext.builder(pageCache, fs, DEFAULT_DATABASE_NAME).build();
    StandardConfiguration configuration = new StandardConfiguration();
    accessor = new GenericNativeIndexAccessor(databaseIndexContext, indexFiles, layout, collector, descriptor, indexSettings, configuration, SIMPLE_NAME_LOOKUP);
}
Also used : IndexDirectoryStructure(org.neo4j.kernel.api.index.IndexDirectoryStructure) RecoveryCleanupWorkCollector(org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector) StandardConfiguration(org.neo4j.gis.spatial.index.curves.StandardConfiguration) TestDirectory(org.neo4j.test.rule.TestDirectory) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 StandardConfiguration (org.neo4j.gis.spatial.index.curves.StandardConfiguration)1 RecoveryCleanupWorkCollector (org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector)1 IndexDirectoryStructure (org.neo4j.kernel.api.index.IndexDirectoryStructure)1 TestDirectory (org.neo4j.test.rule.TestDirectory)1