Search in sources :

Example 1 with SpaceFillingCurveConfiguration

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;
}
Also used : IndexSpecificSpaceFillingCurveSettings(org.neo4j.kernel.impl.index.schema.config.IndexSpecificSpaceFillingCurveSettings) Config(org.neo4j.configuration.Config) SpaceFillingCurveConfiguration(org.neo4j.gis.spatial.index.curves.SpaceFillingCurveConfiguration)

Aggregations

Config (org.neo4j.configuration.Config)1 SpaceFillingCurveConfiguration (org.neo4j.gis.spatial.index.curves.SpaceFillingCurveConfiguration)1 IndexSpecificSpaceFillingCurveSettings (org.neo4j.kernel.impl.index.schema.config.IndexSpecificSpaceFillingCurveSettings)1