Iterator<Pair<Long,ByteBuffer>> iter = objects.all();
while ( iter.hasNext() ) {
Pair<Long, ByteBuffer> pair = iter.next();
long id = pair.getLeft() ;
Node node = NodeLib.fetchDecode(id, objects) ;
Hash hash = new Hash(recordFactory.keyLength()) ;
setHash(hash, node) ;
byte k[] = hash.getBytes() ;
Record record = recordFactory.create(k) ;
Bytes.setLong(id, record.getValue(), 0) ;
nodeToId.add(record);