public class WritableIndexPartition extends AbstractIndexPartition
AbstractIndexPartition| Constructor and Description |
|---|
WritableIndexPartition(File partitionFolder,
org.apache.lucene.store.Directory directory,
org.apache.lucene.index.IndexWriterConfig writerConfig) |
| 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 to make newly inserted data visible for readers.
|
org.neo4j.graphdb.ResourceIterator<File> |
snapshot()
Retrieve list of consistent Lucene index files for this partition.
|
getDirectorypublic WritableIndexPartition(File partitionFolder, org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig writerConfig) throws IOException
IOExceptionpublic org.apache.lucene.index.IndexWriter getIndexWriter()
getIndexWriter 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.