Class IndexEntries

java.lang.Object
org.basex.index.query.IndexEntries
All Implemented Interfaces:
IndexSearch

public final class IndexEntries extends Object implements IndexSearch
This class contains information for returning index entries.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Details

    • descending

      public boolean descending
      Ascending/descending traversal.
    • prefix

      public boolean prefix
      Prefix/traversal flag.
  • Constructor Details

    • IndexEntries

      public IndexEntries(byte[] text, IndexType type)
      Constructor for prefix search.
      Parameters:
      text - token
      type - index type
    • IndexEntries

      public IndexEntries(byte[] text, boolean asc, IndexType type)
      Constructor for traversing entries.
      Parameters:
      text - token to start with
      asc - return results in ascending order
      type - index type
  • Method Details

    • type

      public IndexType type()
      Description copied from interface: IndexSearch
      Returns the index type.
      Specified by:
      type in interface IndexSearch
      Returns:
      type
    • token

      public byte[] token()
      Description copied from interface: IndexSearch
      Returns the current token.
      Specified by:
      token in interface IndexSearch
      Returns:
      token