org.basex.index.query
Class StringRange

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

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

This class stores a string range for index access.

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

Field Summary
 byte[] max
          Maximum value.
 byte[] min
          Minimum value.
 boolean mni
          Include minimum value.
 boolean mxi
          Include maximum value.
 IndexType type
          Index type.
 
Constructor Summary
StringRange(IndexType it, byte[] mn, boolean in, byte[] mx, boolean ix)
          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 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 Detail

StringRange

public StringRange(IndexType it,
                   byte[] mn,
                   boolean in,
                   byte[] mx,
                   boolean ix)
Constructor.

Parameters:
it - index type (text or attribute)
mn - minimum value
in - include minimum value
mx - maximum value
ix - include 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