Class StringRange

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

public final class StringRange extends Object implements IndexSearch
This class stores a string range for index access.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final byte[]
    Maximum value.
    final byte[]
    Minimum value.
    final boolean
    Include minimum value.
    final boolean
    Include maximum value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StringRange(IndexType type, byte[] min, boolean mni, byte[] max, boolean mxi)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the current token.
    Returns the index type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • min

      public final byte[] min
      Minimum value.
    • mni

      public final boolean mni
      Include minimum value.
    • max

      public final byte[] max
      Maximum value.
    • mxi

      public final boolean mxi
      Include maximum value.
  • Constructor Details

    • StringRange

      public StringRange(IndexType type, byte[] min, boolean mni, byte[] max, boolean mxi)
      Constructor.
      Parameters:
      type - index type
      min - minimum value
      mni - include minimum value
      max - maximum value
      mxi - include maximum value
  • 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