neo4j/community — Issue #266: Accessing node properties with batch inserter
Author: pauljackson
Created: 2012-02-21 15:29:45+00:00
State: open

Using the graphDatabaseService that is returned from a BatchInserterImpl instance. The properties returned are empty. Should contain the property that was just added. This is Neo4J 1.5 GA.

BatchInserter batchInserter = new BatchInserterImpl(storeDir);
GraphDatabaseService graph = batchInserter.getGraphDbService();
Node node = graph.createNode();
node.setProperty("MyKey", "MyValue");
long id = node.getId();
Map properties = batchInserter.getNodeProperties(id);