Class HitsIntersection
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.hits.HitsIntersection
-
-
Constructor Summary
Constructors Constructor Description HitsIntersection(Hits hits1, Hits hits2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
next()
Return the doc number of the next hit in the set.void
set(int doc)
Marks the document with doc numberdoc
as a hit.int
skipTo(int target)
Skips to the first match beyond the current whose document number is greater than or equal to the given target.
-
-
-
Method Detail
-
set
public void set(int doc)
Marks the document with doc numberdoc
as a hit. Implementations may throw an exception if you call set() after next() or skipTo() has been called.
-
next
public int next() throws IOException
Return the doc number of the next hit in the set. Subsequent calls never return the same doc number.- Specified by:
next
in interfaceHits
- Throws:
IOException
-
skipTo
public int skipTo(int target) throws IOException
Skips to the first match beyond the current whose document number is greater than or equal to the given target. Returns -1 if there is no matching document number greater than target.- Specified by:
skipTo
in interfaceHits
- Throws:
IOException
-
-