correct me if I'm wrong but the way I see it is that Traverser is
itself iterable so you can do:

for (Node node: traverser) {
}

While you could assume that the nodes includes are determined by the
ReturnableEvaluator this give you an extra chance to further pick the
nodes to manipulate before stuffing them in a collection or call
getAllNodes. So the current api looks good to me.

2010/1/6 Tim Langley <[email protected]>:
> On 6 Jan 2010, at 14:33, Emil Eifrem wrote:
>
>> On Wed, Jan 6, 2010 at 15:29, Tim Langley <[email protected]> wrote:
>>> When I try to access the collection (getAllNodes)
>>> for example to see how large the result set is then the traverser is 
>>> automatically dumped to the last node (or reset)
>>
>> That's the expected result. getAllNodes() is a convenient method that
>> basically iterates through the result set for you and return it as a
>> collection.
>
> Thank you for the clarification - (whilst this is a little naughty :)
> Would it be possible to slightly change the implementation?
>
> I would expect (in this case) that the Iterator
>
> Traverser.iterator()
>
> and
>
> Traverser.getAllNodes().iterator()
>
> should be the same object?
>
> T
>
>
>> Looking through the javadoc, we obviously need to improve and clarify
>> that point. Thanks.
>>
>> Cheers,
>>
>> --
>> Emil Eifrém, CEO [[email protected]]
>> Neo Technology, www.neotechnology.com
>> Cell: +46 733 462 271 | US: 206 403 8808
>> http://blogs.neotechnology.com/emil
>> http://twitter.com/emileifrem
>> _______________________________________________
>> Neo mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>
> Tel:            +44 7989 539363
> Email:  [email protected]
> Web:    http://www.linkedin.com/in/langleytim
> Skype:  LangleyTim
> Twitter:       �...@timlangley
>
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Raul Raja
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to