Package org.basex.util.ft
Class FTIterator
java.lang.Object
org.basex.util.ft.FTIterator
Full-text iterator.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FTIteratorinit(byte[] text) Initializes the iterator.abstract byte[]Returns the next token.final voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Constructor Details
-
FTIterator
public FTIterator()
-
-
Method Details
-
init
Initializes the iterator.- Parameters:
text- text- Returns:
- self reference
-
nextToken
public abstract byte[] nextToken()Returns the next token. May be called as an alternative toIterator.next()to avoid the creation of newFTSpaninstances.- Returns:
- token
-
remove
public final void remove()
-