private PropertyRecord PropertyRecord(long nextPropertyId) { _propertyRecord.clear(); _propertyRecord.InUse = true; _propertyRecord.Id = nextPropertyId; PrimitiveRecord().IdTo = _propertyRecord; _propertyRecord.setCreated(); return(_propertyRecord); }
public override bool Id(object id, Group group) { long nodeId = _nodeIds.next(); _nodeRecord.Id = nodeId; _idMapper.put(id, nodeId, group); // also store this id as property in temp property store if (id != null) { _idPropertyStore.encodeValue(_idPropertyBlock, 0, Values.of(id)); _idPropertyRecord.addPropertyBlock(_idPropertyBlock); _idPropertyRecord.Id = nodeId; // yes nodeId _idPropertyRecord.InUse = true; _idPropertyStore.updateRecord(_idPropertyRecord); _idPropertyRecord.clear(); } return(true); }