|
||||||||||
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.FTOpt
public final class FTOpt
This class contains all ftcontains options. It can be used by different query implementations.
Nested Class Summary | |
---|---|
static class |
FTOpt.FTMode
Words mode. |
Field Summary | |
---|---|
static int |
CS
Sensitive flag. |
static int |
DC
Diacritics flag. |
static int |
FZ
Fuzzy flag. |
static int |
LC
Lowercase flag. |
byte[] |
ln
Language. |
FTTokenizer |
sb
Fulltext tokenizer. |
static int |
ST
Stemming flag. |
Set |
sw
Stopwords. |
static int |
TS
Thesaurus flag. |
static int |
UC
Uppercase flag. |
static int |
WC
Wildcards flag. |
Constructor Summary | |
---|---|
FTOpt()
|
Method Summary | |
---|---|
void |
compile(FTOpt opt)
Compiles the fulltext options, inheriting the parent.options. |
int |
contains(FTTokenizer tk,
FTPos pos,
byte[] sub)
Checks if the first token contains the second fulltext term. |
boolean |
is(int f)
Returns the specified flag. |
void |
merge(FTOpt ftopt1)
Merge to FTOpts. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
void |
set(int f,
boolean v)
Sets the specified flag. |
java.lang.String |
toString()
|
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 static final int CS
public static final int LC
public static final int UC
public static final int DC
public static final int ST
public static final int WC
public static final int FZ
public static final int TS
public Set sw
public byte[] ln
public final FTTokenizer sb
Constructor Detail |
---|
public FTOpt()
Method Detail |
---|
public void compile(FTOpt opt)
opt
- parent fulltext optionspublic void set(int f, boolean v)
f
- flag to be setv
- valuepublic boolean is(int f)
f
- flag index
public int contains(FTTokenizer tk, FTPos pos, byte[] sub)
tk
- ft tokenizerpos
- ft position filtersub
- query token
public void merge(FTOpt ftopt1)
ftopt1
- FTOpt to mergepublic 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 |