ieb/sparsemapcontent — Issue #112: You can only iterate once over a SparseSearchResultSet
Author: ctweney
Created: 2011-10-18 21:20:42+00:00
State: open

SparseSearchResultSet has a member Iterator that's initialized at the time the result set is constructed. For client code, this means you can only loop once over any given result set instance (because the Iterator interface provides no way to reset the pointer to the first record once you've iterated to the end). This is counterintuitive, to say the least. Calling getResultSetIterator() should give you a new iterator that lets you loop.