|
||||||||||
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
XPath Value representing a full-text Node.
Field Summary | |
---|---|
boolean |
not
Flag for negative node. |
IntList |
p
Pointer for idpos - each idpos has a pointer at its search string position in the xpath 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. |
void |
genPointer(int v)
Generates pointer with value v. |
int[] |
getFTNode()
Returns the complete ftnode. |
int |
getNumTokens()
Get number of tokens from query for this node. |
int |
getPre()
Getter for the prevalue. |
FTTokenizer[] |
getToken()
Getter for the FTTokenizer. |
byte[] |
getTokens()
Convert all tokens to one byte[]. |
boolean |
hasPos()
Checks if node has position values. |
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 |
removePos()
Removes current position value. |
void |
reset()
Reset position iterator. |
void |
setToken(FTTokenizer[] token)
Setter for FTTokenizer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 tokensMethod Detail |
---|
public void genPointer(int v)
v
- valuepublic int getPre()
public boolean morePos()
public void reset()
public void setToken(FTTokenizer[] token)
token
- FTTokenizerpublic FTTokenizer[] getToken()
public byte[] getTokens()
public int nextPos()
public void removePos()
public boolean hasPos()
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()
public int[] getFTNode()
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 |