public interface IndexImplementation
extends org.neo4j.kernel.lifecycle.Lifecycle
IndexImplementation is typically tied to one implementation, f.ex.
lucene, http://lucene.apache.org/java.| Modifier and Type | Method and Description |
|---|---|
boolean |
configMatches(Map<String,String> storedConfig,
Map<String,String> config) |
Map<String,String> |
fillInDefaults(Map<String,String> config)
Fills in default configuration parameters for indexes provided from this
index provider.
|
void |
force() |
void |
init()
Makes available index resource for recovery.
|
ResourceIterator<File> |
listStoreFiles()
Lists store files that this index provider manages.
|
org.neo4j.kernel.impl.transaction.command.NeoCommandHandler |
newApplier(boolean recovery) |
LegacyIndexProviderTransaction |
newTransaction(IndexCommandFactory commandFactory)
Returns a
LegacyIndexProviderTransaction that keeps transaction state for all
indexes for a given provider in a transaction. |
void |
shutdown()
Makes unavailable the index resource as a whole.
|
void |
start()
Makes available index resource for online transaction processing.
|
void |
stop()
Makes unavailable index resource from online transaction processing.
|
LegacyIndexProviderTransaction newTransaction(IndexCommandFactory commandFactory)
LegacyIndexProviderTransaction that keeps transaction state for all
indexes for a given provider in a transaction.commandFactory - index command factory to useLegacyIndexProviderTransaction which represents a type of index suitable for the
given configuration.org.neo4j.kernel.impl.transaction.command.NeoCommandHandler newApplier(boolean recovery)
recovery - indicate recoveryMap<String,String> fillInDefaults(Map<String,String> config)
config - the configuration map to complete with defaults.Map filled with decent defaults for an index from
this index provider.void force()
ResourceIterator<File> listStoreFiles() throws IOException
ResourceIterator has been closed this
index provider must guarantee that the list of files stay intact. The files in the list can
change, but no files may be deleted or added during this period.IOException - depends on the implementationvoid init()
throws Throwable
init in interface org.neo4j.kernel.lifecycle.LifecycleThrowablevoid start()
throws Throwable
start in interface org.neo4j.kernel.lifecycle.LifecycleThrowablevoid stop()
throws Throwable
stop in interface org.neo4j.kernel.lifecycle.LifecycleThrowableCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.