|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.IndexCosts
public final class IndexCosts
This class contains methods for analyzing the costs of index requests.
Field Summary | |
---|---|
QueryContext |
ctx
Query context. |
IndexContext |
ictx
Index context. |
boolean |
not
Flag for ftnot expressions. |
boolean |
seq
Flag for sequential processing. |
Step |
step
Index Step. |
Constructor Summary | |
---|---|
IndexCosts(IndexContext ic,
QueryContext c,
Step s)
Constructor. |
Method Summary | |
---|---|
void |
addCosts(int c)
Adds the estimated costs. |
int |
costs()
Returns the estimated costs. |
void |
costs(int c)
Sets the estimated costs. |
Expr |
invert(Expr ex,
ParseExpr root,
boolean text)
Rewrites the specified expression for index access. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final QueryContext ctx
public final IndexContext ictx
public final Step step
public boolean not
public boolean seq
Constructor Detail |
---|
public IndexCosts(IndexContext ic, QueryContext c, Step s)
ic
- index contextc
- query contexts
- index stepMethod Detail |
---|
public Expr invert(Expr ex, ParseExpr root, boolean text)
ex
- expression to be rewrittenroot
- new root expressiontext
- text flag
public void addCosts(int c)
c
- cost to be addedpublic void costs(int c)
c
- cost to be addedpublic int costs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |