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.StorageService
IOException
public 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.StorageService
IOException
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
public org.apache.lucene.search.IndexSearcher acquireSearcher()
acquireSearcher
in interface LabelScanStorageStrategy.StorageService
public void refreshSearcher() throws IOException
refreshSearcher
in interface LabelScanStorageStrategy.StorageService
IOException
public void releaseSearcher(org.apache.lucene.search.IndexSearcher searcher) throws IOException
releaseSearcher
in interface LabelScanStorageStrategy.StorageService
IOException
public org.neo4j.kernel.api.direct.AllEntriesLabelScanReader newAllEntriesReader()
newAllEntriesReader
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
public void force()
force
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
public org.neo4j.kernel.api.labelscan.LabelScanReader newReader()
newReader
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
public org.neo4j.graphdb.ResourceIterator<File> snapshotStoreFiles() throws IOException
snapshotStoreFiles
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
IOException
public void init() throws IOException
init
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
init
in interface org.neo4j.kernel.lifecycle.Lifecycle
IOException
public void start() throws IOException, org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
start
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
start
in interface org.neo4j.kernel.lifecycle.Lifecycle
IOException
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
public void stop()
stop
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
stop
in interface org.neo4j.kernel.lifecycle.Lifecycle
public void shutdown() throws IOException
shutdown
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
shutdown
in interface org.neo4j.kernel.lifecycle.Lifecycle
IOException
public org.neo4j.unsafe.batchinsert.LabelScanWriter newWriter()
newWriter
in interface org.neo4j.kernel.api.labelscan.LabelScanStore
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.