Exemplo n.º 1
0
        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);
        }