|
||||||||||
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.xpath.locpath.Pred
org.basex.query.xpath.locpath.PredSimple
public final class PredSimple
XPath predicate.
Field Summary | |
---|---|
Expr |
expr
Predicate expression. |
Constructor Summary | |
---|---|
PredSimple(Expr exp)
Constructor. |
Method Summary | |
---|---|
Expr |
indexEquivalent(XPContext ctx,
Step step,
boolean seq)
Returns an equivalent expression which accesses an index structure. |
int |
indexSizes(XPContext ctx,
Step curr,
int min)
Returns the number of results if this query is evaluated by an index. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
boolean |
sameAs(Pred pred)
Compares the predicate for equality. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.xpath.locpath.Pred |
---|
color |
Methods inherited from class org.basex.query.ExprInfo |
---|
info, name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Expr expr
Constructor Detail |
---|
public PredSimple(Expr exp)
exp
- Expression to evaluateMethod Detail |
---|
public Expr indexEquivalent(XPContext ctx, Step step, boolean seq) throws QueryException
Pred
ctx
- rootstep
- location stepseq
- flag for sequential evaluation
QueryException
- evaluation exceptionpublic int indexSizes(XPContext ctx, Step curr, int min)
Pred
Integer.MAX_VALUE
is returned, no index access is possible.
ctx
- rootcurr
- the current location stepmin
- current minimum index hits
public boolean sameAs(Pred pred)
Pred
pred
- predicate to be compared
public java.lang.String toString()
toString
in class ExprInfo
public void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |