All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.basex.util.ft.FTIterator Maven / Gradle / Ivy

There is a newer version: 11.3
Show newest version
package org.basex.util.ft;

import java.util.*;

import org.basex.util.*;

/**
 * Full-text iterator.
 *
 * @author BaseX Team 2005-22, BSD License
 * @author Christian Gruen
 */
public abstract class FTIterator implements Iterator {
  /**
   * Initializes the iterator.
   * @param text text
   * @return self reference
   */
  public abstract FTIterator init(byte[] text);

  /**
   * Returns the next token. May be called as an alternative to {@link #next}
   * to avoid the creation of new {@link FTSpan} instances.
   * @return token
   */
  public abstract byte[] nextToken();

  @Override
  public final void remove() {
    throw Util.notExpected();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy