SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-531
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Kenny MacLeod
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

Make CompassHits implement java.util.Iterable

Created: 06/Feb/08 09:59 AM   Updated: 09/Feb/08 05:08 AM
Component/s: Compass::Core
Affects Version/s: 2.0 M1
Fix Version/s: 2.0.0 M2


 Description  « Hide
CompasHits would be easier to iterate over if it implemented java.util.Iterable. Should be easy enough to do?

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 09/Feb/08 05:08 AM
CompassDetachedHits already has an iterator method returning CompassHitIterator. Now, with generics, CompassHitIterator was removed.

Also make CompassHits and CompassDetachedHits Iterable<CompassHit>, but please be careful when using it over a large result set.