Class 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-24, BSD License, Christian Gruen
    • Field Detail

      • descending

        public boolean descending
        Ascending/descending traversal.
      • prefix

        public boolean prefix
        Prefix/traversal flag.
    • Constructor Detail

      • IndexEntries

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

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

      • token

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