Expected use of `next()` in Java driver

I was doing some testing recently and noticed that on very large datasets, invoking next() seems to pull everything and not just the first element like I thought it would.

I have noticed this used a lot as a way of effectively doing <traversal>.limit(1).

Is it expected if you are using next() that you then close() the traversal that you called next() on?

I tried looking in the docs but since it implements iterator I couldn't find the docs for actually using next()
Was this page helpful?