org.galagosearch.core.retrieval.structured
Class NullExtentIterator

java.lang.Object
  extended by org.galagosearch.core.retrieval.structured.CountIterator
      extended by org.galagosearch.core.retrieval.structured.ExtentIterator
          extended by org.galagosearch.core.retrieval.structured.NullExtentIterator
All Implemented Interfaces:
java.lang.Comparable<CountIterator>, StructuredIterator

public class NullExtentIterator
extends ExtentIterator

Author:
trevor

Constructor Summary
NullExtentIterator()
           
 
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.
 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
 

Constructor Detail

NullExtentIterator

public NullExtentIterator()
Method Detail

nextDocument

public void nextDocument()
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

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

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

reset

public void reset()
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


Copyright © 2009. All Rights Reserved.