org.galagosearch.core.retrieval.structured
Class ExtentConjunctionIterator
java.lang.Object
org.galagosearch.core.retrieval.structured.CountIterator
org.galagosearch.core.retrieval.structured.ExtentIterator
org.galagosearch.core.retrieval.structured.ExtentConjunctionIterator
- All Implemented Interfaces:
- java.lang.Comparable<CountIterator>, StructuredIterator
- Direct Known Subclasses:
- ExtentInsideIterator, OrderedWindowIterator, UnorderedWindowIterator
public abstract class ExtentConjunctionIterator
- extends ExtentIterator
- Author:
- trevor
|
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()
|
void |
findDocument()
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extentIterators
protected ExtentIterator[] extentIterators
extents
protected ExtentArray extents
document
protected int document
done
protected boolean done
ExtentConjunctionIterator
public ExtentConjunctionIterator(ExtentIterator[] extIterators)
loadExtents
public abstract void loadExtents()
nextDocument
public void nextDocument()
throws java.io.IOException
- Description copied from class:
CountIterator
- Moves the iterator to the next document in the list. If
no such document is available, isDone() will return true
after this method is called.
- Specified by:
nextDocument in class ExtentIterator
- Throws:
java.io.IOException
findDocument
public void findDocument()
throws java.io.IOException
- Throws:
java.io.IOException
extents
public ExtentArray extents()
- Specified by:
extents in class ExtentIterator
document
public int document()
- Description copied from class:
CountIterator
- Returns the current document.
- Specified by:
document in class ExtentIterator
count
public int count()
- Description copied from class:
CountIterator
- Returns the number of occurrences of this iterator's term in
the current document.
- Specified by:
count in class ExtentIterator
isDone
public boolean isDone()
- Description copied from class:
CountIterator
- Returns true if there is no data left in the list and false otherwise.
If the result of this method is true, the data returned from document()
and count() is meaningless.
- Specified by:
isDone in class ExtentIterator
reset
public void reset()
throws java.io.IOException
- Description copied from class:
CountIterator
- Resets the position of this iterator to the start of the list.
- Specified by:
reset in interface StructuredIterator- Specified by:
reset in class ExtentIterator
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.