Hi,
I was wondering if it is possible to reset a traverser iterator.
Looking at the Traverser interface comment it says...
// Doc: especially remove() thing
/**
* Returns an {...@link Iterator} representing the traversal of the graph.
The
* iteration is completely lazy in that it will only traverse one step
(to
* the next "hit") for every call to {...@code hasNext()}/{...@code next()}.
*
* Consecutive calls to this method will return the same instance.
*
* @return An iterator for this traverser
*/
// *TODO completely resolve issues regarding this (Iterable/Iterator
...)*
* // Doc: does it create a new iterator or reuse the existing one? This
is*
* // very important! It must be re-use, how else would currentPosition()*
* // make sense?*
public Iterator<Node> iterator();
thanks
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user