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.
|
getDirectory
public WritableIndexPartition(File partitionFolder, org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig writerConfig) throws IOException
IOException
public org.apache.lucene.index.IndexWriter getIndexWriter()
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.