public class ReadOnlyIndexPartition extends AbstractIndexPartition
| Modifier and Type | Method and Description |
|---|---|
PartitionSearcher |
acquireSearcher()
Return searcher for requested partition.
|
void |
close() |
org.apache.lucene.index.IndexWriter |
getIndexWriter()
Retrieve index partition writer
|
void |
maybeRefreshBlocking()
Refresh partition.
|
org.neo4j.graphdb.ResourceIterator<File> |
snapshot()
Retrieve list of consistent Lucene index files for read only partition.
|
getDirectorypublic org.apache.lucene.index.IndexWriter getIndexWriter()
AbstractIndexPartitiongetIndexWriter in class AbstractIndexPartitionpublic PartitionSearcher acquireSearcher() throws IOException
acquireSearcher in class AbstractIndexPartitionIOException - if exception happened during searcher acquisitionpublic void maybeRefreshBlocking()
throws IOException
maybeRefreshBlocking in class AbstractIndexPartitionIOException - if refreshing fails.public void close()
throws IOException
IOExceptionpublic org.neo4j.graphdb.ResourceIterator<File> snapshot() throws IOException
snapshot in class AbstractIndexPartitionIOException - if any IO operation fails.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.