Package org.basex.index.query
Class FTIndexIterator
java.lang.Object
org.basex.index.query.FTIndexIterator
- All Implemented Interfaces:
IndexIterator
This interface provides methods for returning index results.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsFields inherited from interface org.basex.index.query.IndexIterator
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FTIndexIteratorintersect(FTIndexIterator i1, FTIndexIterator i2, int dis) Merges two index array iterators.abstract FTMatchesmatches()Returns the next match.abstract voidpos(int p) Sets the position of the token in the query.static FTIndexIteratorunion(FTIndexIterator i1, FTIndexIterator i2) Merges two index array iterators.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.basex.index.query.IndexIterator
more, pre, size
-
Field Details
-
FTEMPTY
Empty iterator.
-
-
Constructor Details
-
FTIndexIterator
public FTIndexIterator()
-
-
Method Details
-
matches
Returns the next match.- Returns:
- next match (can be
null)
-
pos
public abstract void pos(int p) Sets the position of the token in the query.- Parameters:
p- query position
-
union
Merges two index array iterators.- Parameters:
i1- first index array iterator to mergei2- second index array iterator to merge- Returns:
- IndexArrayIterator
-
intersect
Merges two index array iterators.- Parameters:
i1- first index array iterator to mergei2- second index array iterator to mergedis- word distance (ignored if0)- Returns:
- IndexArrayIterator
-