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.io.fs.FileSystemAbstraction fs,
IndexWriterFactory<LuceneIndexWriter> 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.logging.LogProvider logProvider) |
org.neo4j.kernel.api.direct.AllEntriesLabelScanReader |
newAllEntriesReader() |
org.neo4j.kernel.api.labelscan.LabelScanReader |
newReader() |
org.neo4j.unsafe.batchinsert.LabelScanWriter |
newWriter() |
void |
refreshSearcher() |
void |
releaseSearcher(org.apache.lucene.search.IndexSearcher searcher) |
void |
shutdown() |
org.neo4j.graphdb.ResourceIterator<File> |
snapshotStoreFiles() |
void |
start() |
void |
stop() |
void |
updateDocument(org.apache.lucene.index.Term documentTerm,
org.apache.lucene.document.Document document) |
public LuceneLabelScanStore(LabelScanStorageStrategy strategy, DirectoryFactory directoryFactory, File directoryLocation, org.neo4j.io.fs.FileSystemAbstraction fs, IndexWriterFactory<LuceneIndexWriter> writerFactory, org.neo4j.kernel.impl.api.scan.LabelScanStoreProvider.FullStoreChangeStream fullStoreStream, LuceneLabelScanStore.Monitor monitor)
public static LuceneLabelScanStore.Monitor loggerMonitor(org.neo4j.logging.LogProvider logProvider)
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,
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
updateDocument in interface LabelScanStorageStrategy.StorageServiceIOExceptionorg.neo4j.kernel.api.exceptions.index.IndexCapacityExceededExceptionpublic 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 org.neo4j.kernel.api.direct.AllEntriesLabelScanReader newAllEntriesReader()
newAllEntriesReader in interface org.neo4j.kernel.api.labelscan.LabelScanStorepublic 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,
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
start in interface org.neo4j.kernel.api.labelscan.LabelScanStorestart in interface org.neo4j.kernel.lifecycle.LifecycleIOExceptionorg.neo4j.kernel.api.exceptions.index.IndexCapacityExceededExceptionpublic 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.LifecycleIOExceptionpublic org.neo4j.unsafe.batchinsert.LabelScanWriter newWriter()
newWriter in interface org.neo4j.kernel.api.labelscan.LabelScanStoreCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.