|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.galagosearch.core.retrieval.structured.CountIterator
org.galagosearch.core.retrieval.structured.ExtentIterator
org.galagosearch.core.retrieval.structured.ExtentDisjunctionIterator
public abstract class ExtentDisjunctionIterator
This class is meant to be a base class for many kinds of iterators that require at least one of their children to be present in the document for a match to happen. This class will call loadExtents once for each document that has a match on any child iterator.
| Field Summary | |
|---|---|
protected int |
document
|
protected ExtentArray |
extents
|
protected java.util.PriorityQueue<ExtentIterator> |
iterators
|
protected ExtentIterator[] |
original
|
| Constructor Summary | |
|---|---|
ExtentDisjunctionIterator(ExtentIterator[] iterators)
|
|
| Method Summary | |
|---|---|
int |
count()
Returns the number of occurrences of this iterator's term in the current document. |
int |
document()
Returns the current document. |
ExtentArray |
extents()
|
boolean |
isDone()
Returns true if there is no data left in the list and false otherwise. |
abstract void |
loadExtents()
|
void |
nextDocument()
Moves the iterator to the next document in the list. |
void |
reset()
Resets the position of this iterator to the start of the list. |
| Methods inherited from class org.galagosearch.core.retrieval.structured.ExtentIterator |
|---|
skipToDocument |
| Methods inherited from class org.galagosearch.core.retrieval.structured.CountIterator |
|---|
compareTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExtentIterator[] original
protected java.util.PriorityQueue<ExtentIterator> iterators
protected int document
protected ExtentArray extents
| Constructor Detail |
|---|
public ExtentDisjunctionIterator(ExtentIterator[] iterators)
| Method Detail |
|---|
public abstract void loadExtents()
public void nextDocument()
throws java.io.IOException
CountIterator
nextDocument in class ExtentIteratorjava.io.IOExceptionpublic boolean isDone()
CountIterator
isDone in class ExtentIteratorpublic ExtentArray extents()
extents in class ExtentIteratorpublic int document()
CountIterator
document in class ExtentIteratorpublic int count()
CountIterator
count in class ExtentIterator
public void reset()
throws java.io.IOException
CountIterator
reset in interface StructuredIteratorreset in class ExtentIteratorjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||