{
Node n = iter1.next() ;
NodeId nId = node2id_Cache.get(n) ;
if ( !id2node_Cache.containsKey(nId) )
throw new TDBException("Inconsistent: "+n+" => "+nId) ;
if ( notPresent.contains(n) )
throw new TDBException("Inconsistent: "+n+" in notPresent cache (1)") ;
}
Iterator<NodeId> iter2 = Iter.toList(id2node_Cache.keys()).iterator() ; ;
for ( ; iter2.hasNext() ; )
{
NodeId nId = iter2.next() ;
Node n = id2node_Cache.get(nId) ;
if ( !node2id_Cache.containsKey(n) )
throw new TDBException("Inconsistent: "+nId+" => "+n) ;
if ( notPresent.contains(n) )
throw new TDBException("Inconsistent: "+n+" in notPresent cache (2)") ;
}
}