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

## com.qizx.api.fulltext
Class Thesaurus.TokenSequence

    java.lang.Object
      com.qizx.api.fulltext.Thesaurus.TokenSequence

Enclosing interface:
  Thesaurus

    public static class Thesaurus.TokenSequence

extends Object

Sequence of tokens. Used as an interface between thesauri and the FT engine.

Constructor Summary
`Thesaurus.TokenSequence()`

Method Summary
`void` | `addToken(char[] token)` Adds a token in last position.
`char[]` | `getTokenAt(int index)` Returns the token at position 'index'.
`void` | `removeTokens(int index, int count)` Removes tokens from positions index to index + count -1 inclusive.
`int` | `size()` Returns the number of tokens in the sequence.
`String` | `toString()`

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

Constructor Detail

### Thesaurus.TokenSequence

    public Thesaurus.TokenSequence()

Method Detail

### size

    public int size()

  Returns the number of tokens in the sequence.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### getTokenAt

    public char[] getTokenAt(int index)

  Returns the token at position 'index'.

### addToken

    public void addToken(char[] token)

  Adds a token in last position.

### removeTokens

    public void removeTokens(int index,
                             int count)

  Removes tokens from positions index to index + count -1 inclusive.

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