Search in sources :

Example 1 with IndexStorageFactory

use of org.neo4j.kernel.api.impl.index.storage.IndexStorageFactory in project neo4j by neo4j.

the class AccessUniqueDatabaseIndexTest method getIndexStorage.

private PartitionedIndexStorage getIndexStorage() {
    IndexProviderDescriptor descriptor = new IndexProviderDescriptor(NATIVE30.providerKey(), NATIVE30.providerVersion());
    IndexDirectoryStructure parent = directoriesByProvider(databaseLayout.databaseDirectory()).forProvider(descriptor);
    IndexStorageFactory storageFactory = new IndexStorageFactory(directoryFactory, fileSystem, directoriesBySubProvider(parent).forProvider(LuceneIndexProvider.DESCRIPTOR));
    return storageFactory.indexStorageOf(1);
}
Also used : IndexStorageFactory(org.neo4j.kernel.api.impl.index.storage.IndexStorageFactory) IndexDirectoryStructure(org.neo4j.kernel.api.index.IndexDirectoryStructure) IndexProviderDescriptor(org.neo4j.internal.schema.IndexProviderDescriptor)

Aggregations

IndexProviderDescriptor (org.neo4j.internal.schema.IndexProviderDescriptor)1 IndexStorageFactory (org.neo4j.kernel.api.impl.index.storage.IndexStorageFactory)1 IndexDirectoryStructure (org.neo4j.kernel.api.index.IndexDirectoryStructure)1