Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.index
Class IndexToken

    java.lang.Object
      org.basex.index.IndexToken

Direct Known Subclasses:
  FTTokenizer, RangeToken, ValuesToken

    public abstract class IndexToken

extends java.lang.Object

This class defines access to index tokens.

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

Nested Class Summary
`static class` | `IndexToken.Type` Index types.

Field Summary
`byte[]` | `text` Text.
`IndexToken.Type` | `type` Index type.

Constructor Summary
`IndexToken(IndexToken.Type t)` Constructor.

Method Summary
`byte[]` | `get()` Returns the current index token.
`boolean` | `range()` Returns the range flag.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### text

    public byte[] text

  Text.

### type

    public IndexToken.Type type

  Index type.

Constructor Detail

### IndexToken

    public IndexToken(IndexToken.Type t)

  Constructor.

  Parameters:
    `t` - index type

Method Detail

### get

    public byte[] get()

  Returns the current index token. Can be overwritten by an implementation to return other tokens, as is done in the `FTTokenizer`.

  Returns:
    token

### range

    public boolean range()

  Returns the range flag. Can be overwritten by an implementation to support range searches.

  Returns:
    token

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD