Update in and out predicates to use unique iterator.

This commit is contained in:
Allon Hadaya 2015-04-26 17:36:20 -04:00
parent f775756ad1
commit 35a96a3a81
2 changed files with 9 additions and 1 deletions

View file

@ -145,7 +145,8 @@ func buildInOutPredicateIterator(obj *otto.Object, qs graph.QuadStore, base grap
dir = quad.Object
}
lto := iterator.NewLinksTo(qs, base, dir)
return iterator.NewHasA(qs, lto, quad.Predicate)
hasa := iterator.NewHasA(qs, lto, quad.Predicate)
return iterator.NewUnique(hasa)
}
func buildIteratorTreeHelper(obj *otto.Object, qs graph.QuadStore, base graph.Iterator) graph.Iterator {