use of org.neo4j.kernel.impl.nioneo.store.PropertyStore in project graphdb by neo4j-attic.
the class BatchInserterImpl method getPropertyChain.
private Map<String, Object> getPropertyChain(long propertyId) {
PropertyStore propStore = getPropertyStore();
PropertyRecord propertyRecord = propStore.getRecord(propertyId);
long nextProperty = -1;
Map<String, Object> properties = new HashMap<String, Object>();
do {
nextProperty = propertyRecord.getNextProp();
propStore.makeHeavy(propertyRecord);
String key = indexHolder.getStringKey(propertyRecord.getKeyIndexId());
Object value = propStore.getValue(propertyRecord);
properties.put(key, value);
if (nextProperty != Record.NO_NEXT_PROPERTY.intValue()) {
propertyRecord = propStore.getRecord(propertyRecord.getNextProp());
}
} while (nextProperty != Record.NO_NEXT_PROPERTY.intValue());
return properties;
}
Aggregations