|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.AbstractQueryHits
public abstract class AbstractQueryHits
AbstractQueryHits serves as a base class for QueryHits
implementations.
| Constructor Summary | |
|---|---|
AbstractQueryHits()
|
|
| Method Summary | |
|---|---|
void |
close()
This default implemetation does nothing. |
int |
getSize()
This default implementation returns -1. |
void |
skip(int n)
Provides a default implementation: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.core.query.lucene.QueryHits |
|---|
nextScoreNode |
| Constructor Detail |
|---|
public AbstractQueryHits()
| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface CloseableHitsjava.io.IOException - if an error occurs while releasing resources.
public void skip(int n)
throws java.io.IOException
while (n-- > 0) {
if (nextScoreNode() == null) {
return;
}
}
Sub classes may overwrite this method and implement are more efficient
way to skip hits.
skip in interface CloseableHitsn - the number of hits to skip.
java.io.IOException - if an error occurs while skipping.public int getSize()
-1.
getSize in interface CloseableHits-1.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||