Esempio n. 1
0
 @Override
 public NodeId getAllocateNodeId(Node node) {
   if (passthrough) return base.getAllocateNodeId(node);
   NodeId nodeId = getNodeIdForNode(node);
   if (!NodeId.isDoesNotExist(nodeId)) return nodeId;
   // add to journal
   nodeId = allocate(node);
   return nodeId;
 }
Esempio n. 2
0
 @Override
 public NodeId getNodeIdForNode(Node node) {
   if (node == Node.ANY) return NodeId.NodeIdAny;
   if (passthrough) return base.getNodeIdForNode(node);
   NodeId nodeId = nodeTableJournal.getNodeIdForNode(node);
   if (!NodeId.isDoesNotExist(nodeId)) return mapFromJournal(nodeId);
   nodeId = base.getNodeIdForNode(node);
   return nodeId;
 }
Esempio n. 3
0
 @Override
 public boolean containsNode(Node node) {
   NodeId x = getNodeIdForNode(node);
   return NodeId.isDoesNotExist(x);
 }