Class NumericRange

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

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

    • min

      public final double min
      Minimum value.
    • max

      public final double max
      Maximum value.
  • Constructor Details

    • NumericRange

      public NumericRange(IndexType type, double min, double max)
      Constructor.
      Parameters:
      type - index type
      min - minimum value
      max - 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