|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.FTPos
public class FTPos
This class contains all ftcontains positions filters. It can be used
by different query implementations. After calling the valid()
method, distance(long, long)
and window(long)
must be called with
query specific arguments.
Nested Class Summary | |
---|---|
static class |
FTPos.FTUnit
Units. |
Field Summary | |
---|---|
boolean |
content
Entire content flag. |
boolean |
different
Different flag. |
FTPos.FTUnit |
dunit
Distance unit. |
boolean |
end
End flag. |
FTTokenizer |
ft
Input token. |
boolean |
ordered
Ordered flag. |
boolean |
same
Same flag. |
FTPos.FTUnit |
sdunit
Same/different unit. |
boolean |
start
Start flag. |
TokenList |
term
Term list. |
FTPos.FTUnit |
wunit
Window unit. |
Constructor Summary | |
---|---|
FTPos()
|
Method Summary | |
---|---|
void |
add(byte[] t,
IntList il)
Adds the specified fulltext term and position list. |
boolean |
distance(long mn,
long mx)
Checks if the position values are ordered. |
IntList[] |
getPos()
Get position values. |
void |
init(FTTokenizer tok)
Initializes the select operator. |
boolean |
mildNot()
Evaluates the mild not expression. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
void |
setPos(IntList[] il,
int ilsize)
Sets the position values and the number of tokens. |
java.lang.String |
toString()
|
boolean |
valid()
Performs common position tests. |
boolean |
window(long win)
Checks if the specified window is correct. |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info, name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean ordered
public boolean start
public boolean end
public boolean content
public FTPos.FTUnit wunit
public FTPos.FTUnit dunit
public boolean same
public boolean different
public FTPos.FTUnit sdunit
public TokenList term
public FTTokenizer ft
Constructor Detail |
---|
public FTPos()
Method Detail |
---|
public void init(FTTokenizer tok)
tok
- tokenizer for source termpublic void add(byte[] t, IntList il)
FTOpt.contains(org.basex.index.FTTokenizer, org.basex.query.FTPos, byte[])
was successful.
t
- term to be addedil
- positions to be addedpublic void setPos(IntList[] il, int ilsize)
il
- IntList[] with position valuesilsize
- int number of tokens in querypublic boolean valid()
distance(long, long)
and window(long)
have variable arguments, they have to be called on their own.
public boolean distance(long mn, long mx)
mn
- minimum distancemx
- maximum distance
public boolean window(long win)
win
- window value
public IntList[] getPos()
public boolean mildNot()
public void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exceptionpublic java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |