Qizx fe-4.4p2 API

com.qizx.api.fulltext
Class Thesaurus.TokenSequence

java.lang.Object
  extended by 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.


© 2010 Axyana Software