public class LuceneLabelScanStore extends Object implements org.neo4j.kernel.api.labelscan.LabelScanStore, LabelScanStorageStrategy.StorageService
| Modifier and Type | Class and Description |
|---|---|
static interface |
LuceneLabelScanStore.Monitor |
| Constructor and Description |
|---|
LuceneLabelScanStore(LabelScanStorageStrategy strategy,
DirectoryFactory directoryFactory,
File directoryLocation,
org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fs,
LuceneIndexWriterFactory writerFactory,
org.neo4j.kernel.impl.api.scan.LabelScanStoreProvider.FullStoreChangeStream fullStoreStream,
LuceneLabelScanStore.Monitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.IndexSearcher |
acquireSearcher() |
void |
deleteDocuments(org.apache.lucene.index.Term documentTerm) |
void |
force() |
void |
init() |
static LuceneLabelScanStore.Monitor |
loggerMonitor(org.neo4j.kernel.logging.Logging logging) |
org.neo4j.kernel.api.direct.AllEntriesLabelScanReader |
newAllEntriesReader() |
org.neo4j.kernel.api.labelscan.LabelScanReader |
newReader() |
void |
recover(Iterator<org.neo4j.kernel.api.labelscan.NodeLabelUpdate> updates) |
void |
refreshSearcher() |
void |
releaseSearcher(org.apache.lucene.search.IndexSearcher searcher) |
void |
shutdown() |
org.neo4j.graphdb.ResourceIterator<File> |
snapshotStoreFiles() |
void |
start() |
void |
stop() |
void |
updateAndCommit(Iterator<org.neo4j.kernel.api.labelscan.NodeLabelUpdate> updates) |
void |
updateDocument(org.apache.lucene.index.Term documentTerm,
org.apache.lucene.document.Document document) |
public LuceneLabelScanStore(LabelScanStorageStrategy strategy, DirectoryFactory directoryFactory, File directoryLocation, org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fs, LuceneIndexWriterFactory writerFactory, org.neo4j.kernel.impl.api.scan.LabelScanStoreProvider.FullStoreChangeStream fullStoreStream, LuceneLabelScanStore.Monitor monitor)
public static LuceneLabelScanStore.Monitor loggerMonitor(org.neo4j.kernel.logging.Logging logging)
public void deleteDocuments(org.apache.lucene.index.Term documentTerm)
throws IOException
deleteDocuments in interface LabelScanStorageStrategy.StorageServiceIOExceptionpublic void updateDocument(org.apache.lucene.index.Term documentTerm,
org.apache.lucene.document.Document document)
throws IOException
updateDocument in interface LabelScanStorageStrategy.StorageServiceIOExceptionpublic org.apache.lucene.search.IndexSearcher acquireSearcher()
acquireSearcher in interface LabelScanStorageStrategy.StorageServicepublic void refreshSearcher()
throws IOException
refreshSearcher in interface LabelScanStorageStrategy.StorageServiceIOExceptionpublic void releaseSearcher(org.apache.lucene.search.IndexSearcher searcher)
throws IOException
releaseSearcher in interface LabelScanStorageStrategy.StorageServiceIOExceptionpublic void updateAndCommit(Iterator<org.neo4j.kernel.api.labelscan.NodeLabelUpdate> updates) throws IOException
updateAndCommit in interface org.neo4j.kernel.api.labelscan.LabelScanStoreIOExceptionpublic org.neo4j.kernel.api.direct.AllEntriesLabelScanReader newAllEntriesReader()
newAllEntriesReader in interface org.neo4j.kernel.api.labelscan.LabelScanStorepublic void recover(Iterator<org.neo4j.kernel.api.labelscan.NodeLabelUpdate> updates) throws IOException
recover in interface org.neo4j.kernel.api.labelscan.LabelScanStoreIOExceptionpublic void force()
force in interface org.neo4j.kernel.api.labelscan.LabelScanStorepublic org.neo4j.kernel.api.labelscan.LabelScanReader newReader()
newReader in interface org.neo4j.kernel.api.labelscan.LabelScanStorepublic org.neo4j.graphdb.ResourceIterator<File> snapshotStoreFiles() throws IOException
snapshotStoreFiles in interface org.neo4j.kernel.api.labelscan.LabelScanStoreIOExceptionpublic void init()
throws IOException
init in interface org.neo4j.kernel.api.labelscan.LabelScanStoreinit in interface org.neo4j.kernel.lifecycle.LifecycleIOExceptionpublic void start()
throws IOException
start in interface org.neo4j.kernel.api.labelscan.LabelScanStorestart in interface org.neo4j.kernel.lifecycle.LifecycleIOExceptionpublic void stop()
stop in interface org.neo4j.kernel.api.labelscan.LabelScanStorestop in interface org.neo4j.kernel.lifecycle.Lifecyclepublic void shutdown()
throws IOException
shutdown in interface org.neo4j.kernel.api.labelscan.LabelScanStoreshutdown in interface org.neo4j.kernel.lifecycle.LifecycleIOExceptionCopyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.