Class ArrayHits
- java.lang.Object
- 
- org.apache.jackrabbit.core.query.lucene.hits.ArrayHits
 
- 
- All Implemented Interfaces:
- Hits
 
 public class ArrayHits extends Object implements Hits Uses an integer array to store the hit set. This implementation uses less memory thanBitSetHitsif the total number of documents is high and and the number of hits is low or if your hits doc numbers are mostly in the upper part of your doc number range. If you don't know about your hit distribution in advance useAdaptingHitsinstead.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intnext()Return the doc number of the next hit in the set.voidset(int doc)Marks the document with doc numberdocas a hit.intskipTo(int target)Skips to the first match beyond the current whose document number is greater than or equal to the given target.
 
- 
- 
- 
Method Detail- 
setpublic void set(int doc) Marks the document with doc numberdocas a hit. Implementations may throw an exception if you call set() after next() or skipTo() has been called.
 - 
nextpublic int next() Return the doc number of the next hit in the set. Subsequent calls never return the same doc number.
 
- 
 
-