org.basex.index
Class FTIndexIterator

java.lang.Object
  extended by org.basex.index.IndexIterator
      extended by org.basex.index.FTIndexIterator

public abstract class FTIndexIterator
extends IndexIterator

This interface provides methods for returning index results.

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

Constructor Summary
FTIndexIterator()
           
 
Method Summary
abstract  FTMatches matches()
          Returns the next match.
static FTIndexIterator phrase(FTIndexIterator i1, FTIndexIterator i2)
          Merges two index array iterators.
 void setTokenNum(byte tn)
          Sets the unique token number.
 
Methods inherited from class org.basex.index.IndexIterator
more, next
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTIndexIterator

public FTIndexIterator()
Method Detail

matches

public abstract FTMatches matches()
Returns the next match.

Returns:
next match

setTokenNum

public void setTokenNum(byte tn)
Sets the unique token number. Used for visualization.

Parameters:
tn - number of tokens

phrase

public static FTIndexIterator phrase(FTIndexIterator i1,
                                     FTIndexIterator i2)
Merges two index array iterators.

Parameters:
i1 - first index array iterator to merge
i2 - second index array iterator to merge
Returns:
IndexArrayIterator