use of org.neo4j.gis.spatial.index.curves.SpaceFillingCurveConfiguration in project neo4j by neo4j.
the class GenericBlockBasedIndexPopulatorTest method instantiatePopulator.
private GenericBlockBasedIndexPopulator instantiatePopulator(IndexDescriptor indexDescriptor) throws IOException {
Config config = Config.defaults();
IndexSpecificSpaceFillingCurveSettings spatialSettings = IndexSpecificSpaceFillingCurveSettings.fromConfig(config);
GenericLayout layout = new GenericLayout(1, spatialSettings);
SpaceFillingCurveConfiguration configuration = SpaceFillingCurveSettingsFactory.getConfiguredSpaceFillingCurveConfiguration(config);
GenericBlockBasedIndexPopulator populator = new GenericBlockBasedIndexPopulator(databaseIndexContext, indexFiles, layout, indexDescriptor, spatialSettings, configuration, false, heapBufferFactory((int) kibiBytes(40)), config, INSTANCE, tokenNameLookup);
populator.create();
return populator;
}
Aggregations