Package org.basex.index.query
Class IndexEntries
java.lang.Object
org.basex.index.query.IndexEntries
- All Implemented Interfaces:
IndexSearch
This class contains information for returning index entries.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanAscending/descending traversal.booleanPrefix/traversal flag. -
Constructor Summary
ConstructorsConstructorDescriptionIndexEntries(byte[] text, boolean asc, IndexType type) Constructor for traversing entries.IndexEntries(byte[] text, IndexType type) Constructor for prefix search. -
Method Summary
-
Field Details
-
descending
public boolean descendingAscending/descending traversal. -
prefix
public boolean prefixPrefix/traversal flag.
-
-
Constructor Details
-
IndexEntries
Constructor for prefix search.- Parameters:
text- tokentype- index type
-
IndexEntries
Constructor for traversing entries.- Parameters:
text- token to start withasc- return results in ascending ordertype- index type
-
-
Method Details
-
type
Description copied from interface:IndexSearchReturns the index type.- Specified by:
typein interfaceIndexSearch- Returns:
- type
-
token
public byte[] token()Description copied from interface:IndexSearchReturns the current token.- Specified by:
tokenin interfaceIndexSearch- Returns:
- token
-