|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.index.IndexToken
org.basex.index.FTTokenizer
public final class FTTokenizer
Full-text tokenizer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.index.IndexToken |
|---|
IndexToken.Type |
| Field Summary | |
|---|---|
int |
count
Number of tokens. |
boolean |
cs
Sensitivity flag. |
boolean |
dc
Diacritics flag. |
boolean |
fz
Fuzzy flag. |
int |
lastpm
Backup last punctuation mark. |
boolean |
lc
Lowercase flag. |
boolean |
lp
Flag for loading ftposition data. |
int |
p
Current character position. |
int |
para
Current paragraph. |
int |
pos
Current token. |
int |
s
Character start position. |
Map<byte[]> |
sd
Stemming dictionary. |
int |
sent
Current sentence. |
boolean |
st
Stemming flag. |
boolean |
uc
Uppercase flag. |
boolean |
wc
Wildcard flag. |
| Fields inherited from class org.basex.index.IndexToken |
|---|
text, type |
| Constructor Summary | |
|---|---|
FTTokenizer()
Empty constructor. |
|
FTTokenizer(byte[] txt)
Constructor. |
|
FTTokenizer(byte[] txt,
FTOpt fto)
Constructor. |
|
| Method Summary | |
|---|---|
int |
count()
Counts the number of tokens. |
byte[] |
get()
Returns the current index token. |
int[][] |
getInfo()
Gets fulltext info out of text. |
TokenList |
getTokenList()
Converts the tokens to a TokenList. |
void |
init()
Initializes the iterator. |
void |
init(byte[] txt)
Sets the text. |
boolean |
more()
Checks if more tokens are to be returned. |
int |
size()
Returns the text size. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.index.IndexToken |
|---|
range |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Map<byte[]> sd
public boolean st
public boolean dc
public boolean cs
public boolean uc
public boolean lc
public boolean wc
public boolean fz
public boolean lp
public int sent
public int para
public int pos
public int p
public int s
public int count
public int lastpm
| Constructor Detail |
|---|
public FTTokenizer()
public FTTokenizer(byte[] txt)
txt - text
public FTTokenizer(byte[] txt,
FTOpt fto)
txt - textfto - fulltext options| Method Detail |
|---|
public void init(byte[] txt)
txt - textpublic void init()
public boolean more()
public byte[] get()
IndexTokenFTTokenizer.
get in class IndexTokenpublic int count()
public int[][] getInfo()
public int size()
public TokenList getTokenList()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||