- provider.uriToResourceMap.remove(id);
- }
-
- private void lookup(ReadGraphImpl graph, final QueryProcessor processor, final InternalProcedure<Integer> procedure, final String namespace, final String name) {
-
- NamespaceIndex.queryEach(graph, namespace, processor, this, null, new InternalProcedure<TObjectIntHashMap<String>>() {
-
- @Override
- public void execute(ReadGraphImpl graph, TObjectIntHashMap<String> index) {
-
- if(index != null) {
- int result = index.get(name);
- if(result != 0) {
- addOrSet(graph, processor, result);
- procedure.execute(graph, result);
- return;
- }
- }
-
- addOrSet(graph, processor, new Integer(0));
- procedure.execute(graph, new Integer(0));
-
- }
-
- @Override
- public void exception(ReadGraphImpl graph, Throwable t) {
- except(t);
- procedure.exception(graph, t);
- }
-
- });
-
- }
-
- private static void lookup(ReadGraphImpl graph, final URIToResource entry, final InternalProcedure<Integer> procedure, final String namespace, final String name) {
-
- NamespaceIndex.queryEach(graph, namespace, graph.processor, entry, null, new InternalProcedure<TObjectIntHashMap<String>>() {
-
- @Override
- public void execute(ReadGraphImpl graph, TObjectIntHashMap<String> index) {
-
- if(index != null) {
- int result = index.get(name);
- if(result != 0) {
- if(entry != null) entry.addOrSet(graph, graph.processor, result);
- procedure.execute(graph, result);
- return;
- }
- }
-
- Integer zero = 0;
- if(entry != null) entry.addOrSet(graph, graph.processor, zero);
- procedure.execute(graph, zero);
-
- }
-
- @Override
- public void exception(ReadGraphImpl graph, Throwable t) {
- if(entry != null) entry.except(t);
- procedure.exception(graph, t);
- }
-
- });
-