|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.galagosearch.core.retrieval.structured.CountIterator
public abstract class CountIterator
This is base interface for all inverted lists that return count information.
ExtentIterator| Constructor Summary | |
|---|---|
CountIterator()
|
|
| Method Summary | |
|---|---|
int |
compareTo(CountIterator other)
Compares the current document of two iterators. |
abstract int |
count()
Returns the number of occurrences of this iterator's term in the current document. |
abstract int |
document()
Returns the current document. |
abstract boolean |
isDone()
Returns true if there is no data left in the list and false otherwise. |
abstract void |
nextDocument()
Moves the iterator to the next document in the list. |
abstract void |
reset()
Resets the position of this iterator to the start of the list. |
boolean |
skipToDocument(int document)
Skips forward in the list until a document is found that is greater than or equal to the parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountIterator()
| Method Detail |
|---|
public boolean skipToDocument(int document)
throws java.io.IOException
java.io.IOException
public abstract void nextDocument()
throws java.io.IOException
java.io.IOExceptionpublic abstract int document()
public abstract int count()
public abstract boolean isDone()
public abstract void reset()
throws java.io.IOException
reset in interface StructuredIteratorjava.io.IOExceptionpublic int compareTo(CountIterator other)
compareTo in interface java.lang.Comparable<CountIterator>PriorityQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||