org.basex.index.query
Class NumericRange

java.lang.Object
  extended by org.basex.index.query.NumericRange
All Implemented Interfaces:
IndexToken

public final class NumericRange
extends java.lang.Object
implements IndexToken

This class stores a numeric range for index access.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 double max
          Maximum value.
 double min
          Minimum value.
 IndexType type
          Index type.
 
Constructor Summary
NumericRange(IndexType it, double mn, double mx)
          Constructor.
 
Method Summary
 byte[] get()
          Returns the current token.
 IndexType type()
          Returns the index type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final IndexType type
Index type.


min

public final double min
Minimum value.


max

public final double max
Maximum value.

Constructor Detail

NumericRange

public NumericRange(IndexType it,
                    double mn,
                    double mx)
Constructor.

Parameters:
it - index type
mn - minimum value
mx - maximum value
Method Detail

type

public IndexType type()
Description copied from interface: IndexToken
Returns the index type.

Specified by:
type in interface IndexToken
Returns:
type

get

public byte[] get()
Description copied from interface: IndexToken
Returns the current token.

Specified by:
get in interface IndexToken
Returns:
token