org.basex.index
Class IndexIterator

java.lang.Object
  extended by org.basex.index.IndexIterator
Direct Known Subclasses:
IndexArrayIterator

public abstract class IndexIterator
extends java.lang.Object

This interface provides methods for returning index results.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
static IndexIterator EMPTY
          Empty iterator.
 
Constructor Summary
IndexIterator()
           
 
Method Summary
abstract  boolean more()
          Checks if more results are available.
abstract  int next()
          Returns the next result.
abstract  FTNode nextFTNodeFD()
          Returns the next result as FTNode object.
abstract  int size()
          Returns the number of index results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final IndexIterator EMPTY
Empty iterator.

Constructor Detail

IndexIterator

public IndexIterator()
Method Detail

more

public abstract boolean more()
Checks if more results are available.

Returns:
result

next

public abstract int next()
Returns the next result.

Returns:
result

size

public abstract int size()
Returns the number of index results.

Returns:
size

nextFTNodeFD

public abstract FTNode nextFTNodeFD()
Returns the next result as FTNode object.

Returns:
next FTNode