public abstract class AbstractIndexPartition extends Object implements Closeable
Directory, writer and
SearcherManager.| Constructor and Description |
|---|
AbstractIndexPartition(File partitionFolder,
org.apache.lucene.store.Directory directory) |
| Modifier and Type | Method and Description |
|---|---|
abstract PartitionSearcher |
acquireSearcher()
Return searcher for requested partition.
|
org.apache.lucene.store.Directory |
getDirectory()
Retrieve index partition directory
|
abstract org.apache.lucene.index.IndexWriter |
getIndexWriter()
Retrieve index partition writer
|
abstract void |
maybeRefreshBlocking()
Refresh partition to make newly inserted data visible for readers.
|
abstract org.neo4j.graphdb.ResourceIterator<File> |
snapshot()
Retrieve list of consistent Lucene index files for this partition.
|
public AbstractIndexPartition(File partitionFolder, org.apache.lucene.store.Directory directory)
public org.apache.lucene.store.Directory getDirectory()
public abstract org.apache.lucene.index.IndexWriter getIndexWriter()
public abstract PartitionSearcher acquireSearcher() throws IOException
IOException - if exception happened during searcher acquisitionpublic abstract void maybeRefreshBlocking()
throws IOException
IOException - if refreshing fails.public abstract org.neo4j.graphdb.ResourceIterator<File> snapshot() throws IOException
IOException - if any IO operation fails.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.