use of org.neo4j.kernel.api.impl.index.storage.PartitionedIndexStorage in project neo4j by neo4j.
the class LuceneIndexProvider method getMinimalIndexAccessor.
@Override
public MinimalIndexAccessor getMinimalIndexAccessor(IndexDescriptor descriptor) {
PartitionedIndexStorage indexStorage = indexStorageFactory.indexStorageOf(descriptor.getId());
DroppableIndex<ValueIndexReader> index = new DroppableIndex<>(new DroppableLuceneIndex<>(indexStorage, new ReadOnlyIndexPartitionFactory(), descriptor));
return new LuceneMinimalIndexAccessor<>(descriptor, index, true);
}
Aggregations