func NewIterator(tree *b.Tree, data string, ts *TripleStore) *Iterator { iter, err := tree.SeekFirst() if err != nil { iter = nil } return &Iterator{ uid: iterator.NextUID(), ts: ts, tree: tree, iter: iter, data: data, } }
func NewIterator(tree *b.Tree, qs *QuadStore, d quad.Direction, value graph.Value) *Iterator { iter, err := tree.SeekFirst() if err != nil { iter = nil } return &Iterator{ uid: iterator.NextUID(), qs: qs, tree: tree, iter: iter, d: d, value: value, } }