|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.index.FTNode
public final class FTNode
Full-text Node.
| Field Summary | |
|---|---|
IntList |
ip
Fulltext data for a node. |
boolean |
not
Flag for negative node. |
IntList |
p
Pointer for idpos - each idpos has a pointer at its search string position in the query. |
int |
size
Number of stored values. |
| Constructor Summary | |
|---|---|
FTNode()
Constructor. |
|
FTNode(int[] idpos,
int[] pointer)
Constructor. |
|
| Method Summary | |
|---|---|
IntList[] |
convertPos()
Converts the pos values in the following style. |
int |
getNumTokens()
Get number of tokens from query for this node. |
int |
getPre()
Getter for the pre value. |
FTTokenizer[] |
getToken()
Getter for the FTTokenizer. |
boolean |
merge(FTNode n,
int w)
Merges n to the current FTNode. |
boolean |
morePos()
Test is any pos value is remaining. |
int |
nextPoi()
Get next pointer. |
int |
nextPos()
Get next pos value. |
void |
reset()
Reset position iterator. |
void |
setToken(FTTokenizer[] token)
Setter for FTTokenizer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IntList ip
public IntList p
public boolean not
public int size
| Constructor Detail |
|---|
public FTNode()
public FTNode(int[] idpos,
int[] pointer)
idpos - ftdata, pre, pos1, ..., posnpointer - pointer on query tokens| Method Detail |
|---|
public int getPre()
public boolean morePos()
public void reset()
public void setToken(FTTokenizer[] token)
token - FTTokenizerpublic FTTokenizer[] getToken()
public int nextPos()
public int getNumTokens()
public boolean merge(FTNode n,
int w)
n - ftnode to be mergedw - distance between the pos values
public IntList[] convertPos()
public int nextPoi()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||