org.basex.index
Class ValuesToken

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

public final class ValuesToken
extends Object
implements IndexToken

This class defines access to index text tokens.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Constructor Summary
ValuesToken(Data.Type t, byte[] tok)
          Constructor.
 
Method Summary
 byte[] get()
          Returns the current token.
 Data.Type type()
          Returns the index type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuesToken

public ValuesToken(Data.Type t,
                   byte[] tok)
Constructor.

Parameters:
t - index type
tok - token
Method Detail

type

public Data.Type 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