public class Neo4jBatchDatabase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.neo4j.unsafe.batchinsert.BatchInserterIndex> |
batchInserterIndexes
Store the list of index
|
| Constructor and Description |
|---|
Neo4jBatchDatabase(String path,
Map<String,String> configuration)
Constructor that create an embedded database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createBatchIndex(String indexName,
Integer indexCacheSize)
Create and store the index, if it doesn't exist.
|
void |
createSchema(String type,
String label,
String property)
Create schema.
|
Long |
findNodeInBatchIndex(String indexName,
Object value)
Find a node in the index.
|
void |
flushBatchIndex(String indexName)
Flush the specified index on the disk, so it will be available after for search.
|
org.neo4j.unsafe.batchinsert.BatchInserter |
getInserter()
Getter for inserter
|
void |
indexNodeInBatchIndex(String indexName,
long node,
Object importIdValue)
Push a node importId into the batch index.
|
void |
shutdown()
Shutdown the graph database
|
public org.neo4j.unsafe.batchinsert.BatchInserter getInserter()
public void createBatchIndex(String indexName, Integer indexCacheSize)
indexName - Name of the indexindexCacheSize - Number of element into the cache size for the indexpublic void flushBatchIndex(String indexName)
indexName - Name of the index to flushpublic void indexNodeInBatchIndex(String indexName, long node, Object importIdValue)
indexName - The batch index namenode - Neo4j identifierimportIdValue - Import identifierpublic Long findNodeInBatchIndex(String indexName, Object value)
indexName - Name of the batch indexvalue - Value to search in indexpublic void createSchema(String type, String label, String property)
type - Type of schema to create (ie. constraint or index on node property)label - Node labelproperty - Node propertypublic void shutdown()
Copyright © 2017. All rights reserved.