412413414415416417418419420421422
nodeMap = new HashMap<Long, CheckpointReference>(); levelMap.put(level, nodeMap); } nodeMap.put(in.getNodeId(), new CheckpointReference(in.getDatabase().getId(), in.getNodeId(), in.isDbRoot(), in.getIdentifierKey())); numEntries++;
463464465466467468469470471472473
final Map<Long, CheckpointReference> nodeMap = levelMap.get(level); if (nodeMap != null) { final Iterator<Map.Entry<Long, CheckpointReference>> iter = nodeMap.entrySet().iterator(); if (iter.hasNext()) { final CheckpointReference ref = iter.next().getValue(); iter.remove(); return ref; } } return null;
238239240241242243244245246247248
nodeMap = new HashMap<Long,CheckpointReference>(); levelMap.put(level, nodeMap); } nodeMap.put(in.getNodeId(), new CheckpointReference(in.getDatabase().getId(), in.getNodeId(), in.containsDuplicates(), in.isDbRoot(), in.getMainTreeKey(), in.getDupTreeKey()));
298299300301302303304305306307308
Map<Long,CheckpointReference> nodeMap = levelMap.get(level); if (nodeMap != null) { Iterator<Map.Entry<Long,CheckpointReference>> iter = nodeMap.entrySet().iterator(); if (iter.hasNext()) { CheckpointReference ref = iter.next().getValue(); iter.remove(); return ref; } } return null;