org.basex.query.xpath.expr
Class Equality
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.expr.Arr
org.basex.query.xpath.expr.Cmp
org.basex.query.xpath.expr.Equality
public final class Equality
- extends Cmp
Equality Expression, evaluating comparisons.
- Author:
- Workgroup DBIS, University of Konstanz 2005-08, ISC License, Tim Petrowsky
Fields inherited from class org.basex.query.xpath.expr.Cmp |
type |
Fields inherited from class org.basex.query.xpath.expr.Arr |
expr |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Equality
public Equality(Expr e1,
Expr e2,
Comp t)
- Constructor.
- Parameters:
e1
- first expressione2
- second expression to compare with firstt
- Comp.EQ
or Comp.NE
indexEquivalent
public Expr indexEquivalent(XPContext ctx,
Step curr,
boolean seq)
- Description copied from class:
Expr
- Returns an equivalent expression which accesses an index structure.
- Overrides:
indexEquivalent
in class Expr
- Parameters:
ctx
- rootcurr
- location stepseq
- flag for sequential evaluation
- Returns:
- Equivalent index-expression or null
indexSizes
public int indexSizes(XPContext ctx,
Step curr,
int min)
- Description copied from class:
Expr
- Returns the number of results if this query is evaluated by an index.
If
Integer.MAX_VALUE
is returned, no index access is possible.
- Overrides:
indexSizes
in class Expr
- Parameters:
ctx
- rootcurr
- the current location stepmin
- current minimum index hits
- Returns:
- number of expected results