public class LuceneBatchInserterIndexProvider extends Object implements BatchInserterIndexProvider
BatchInserter
version of the Lucene-based indexes. Indexes
created and populated using BatchInserterIndex
s from this provider
are compatible with the normal Index
es.Constructor and Description |
---|
LuceneBatchInserterIndexProvider(BatchInserter inserter) |
Modifier and Type | Method and Description |
---|---|
BatchInserterIndex |
nodeIndex(String indexName,
Map<String,String> config)
|
BatchInserterIndex |
relationshipIndex(String indexName,
Map<String,String> config)
|
void |
shutdown()
Shuts down this index provider and ensures that all indexes are fully
written to disk.
|
public LuceneBatchInserterIndexProvider(BatchInserter inserter)
public BatchInserterIndex nodeIndex(String indexName, Map<String,String> config)
BatchInserterIndexProvider
BatchInserterIndex
for Node
s for the name
indexName
with the given config
. The config
Map
can contain any provider-implementation-specific data that
can control how an index behaves.nodeIndex
in interface BatchInserterIndexProvider
indexName
- the name of the index. It will be created if it doesn't
exist.config
- a Map
of configuration parameters to use with the
index if it doesn't exist. Parameters can be anything and are
implementation-specific.BatchInserterIndex
corresponding to the
indexName
.public BatchInserterIndex relationshipIndex(String indexName, Map<String,String> config)
BatchInserterIndexProvider
BatchInserterIndex
for Relationship
s for the
name indexName
with the given config
. The config
Map
can contain any provider-implementation-specific data that
can control how an index behaves.relationshipIndex
in interface BatchInserterIndexProvider
indexName
- the name of the index. It will be created if it doesn't
exist.config
- a Map
of configuration parameters to use with the
index if it doesn't exist. Parameters can be anything and are
implementation-specific.BatchInserterIndex
corresponding to the
indexName
.public void shutdown()
BatchInserterIndexProvider
BatchInserter
there's no guaranteed that data added to indexes
will be persisted.shutdown
in interface BatchInserterIndexProvider
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.