|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.query.lucene.hits.ScorerHits
public class ScorerHits
Wraps a Scorer
in a Hits
instance.
Constructor Summary | |
---|---|
ScorerHits(org.apache.lucene.search.Scorer scorer)
|
Method Summary | |
---|---|
int |
next()
Return the doc number of the next hit in the set. |
void |
set(int doc)
Marks the document with doc number doc 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScorerHits(org.apache.lucene.search.Scorer scorer)
Method Detail |
---|
public void set(int doc)
doc
as a hit.
Implementations may throw an exception if you call set() after next() or
skipTo() has been called.
set
in interface Hits
public int next() throws IOException
next
in interface Hits
IOException
public int skipTo(int target) throws IOException
skipTo
in interface Hits
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |