Search in sources :

Example 1 with SimpleLuceneLabelScanStoreReader

use of org.neo4j.kernel.api.impl.labelscan.reader.SimpleLuceneLabelScanStoreReader in project neo4j by neo4j.

the class LuceneLabelScanIndex method createSimpleReader.

private LabelScanReader createSimpleReader(List<AbstractIndexPartition> partitions) throws IOException {
    AbstractIndexPartition partition = getFirstPartition(partitions);
    PartitionSearcher searcher = partition.acquireSearcher();
    return new SimpleLuceneLabelScanStoreReader(searcher, storageStrategy);
}
Also used : PartitionSearcher(org.neo4j.kernel.api.impl.index.partition.PartitionSearcher) AbstractIndexPartition(org.neo4j.kernel.api.impl.index.partition.AbstractIndexPartition) SimpleLuceneLabelScanStoreReader(org.neo4j.kernel.api.impl.labelscan.reader.SimpleLuceneLabelScanStoreReader)

Aggregations

AbstractIndexPartition (org.neo4j.kernel.api.impl.index.partition.AbstractIndexPartition)1 PartitionSearcher (org.neo4j.kernel.api.impl.index.partition.PartitionSearcher)1 SimpleLuceneLabelScanStoreReader (org.neo4j.kernel.api.impl.labelscan.reader.SimpleLuceneLabelScanStoreReader)1