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.
|
getDirectory
public org.apache.lucene.index.IndexWriter getIndexWriter()
AbstractIndexPartition
getIndexWriter
in class AbstractIndexPartition
public PartitionSearcher acquireSearcher() throws IOException
acquireSearcher
in class AbstractIndexPartition
IOException
- if exception happened during searcher acquisitionpublic void maybeRefreshBlocking() throws IOException
maybeRefreshBlocking
in class AbstractIndexPartition
IOException
- if refreshing fails.public void close() throws IOException
IOException
public org.neo4j.graphdb.ResourceIterator<File> snapshot() throws IOException
snapshot
in class AbstractIndexPartition
IOException
- if any IO operation fails.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.