org.basex.query.path
Class IterPath

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.path.Path
              extended by org.basex.query.path.AxisPath
                  extended by org.basex.query.path.IterPath

public final class IterPath
extends AxisPath

Iterative path expression for location paths which return sorted and duplicate-free results.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Dennis Stratmann, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Use
 
Field Summary
 
Fields inherited from class org.basex.query.path.AxisPath
step
 
Fields inherited from class org.basex.query.path.Path
root
 
Constructor Summary
IterPath(Expr r, Step[] s)
          Constructor.
 
Method Summary
 boolean duplicates(QueryContext ctx)
          Returns true if the expression might yield duplicates and unsorted results.
 Iter iter(QueryContext ctx)
          Evaluates the expression and returns an iterator on the resulting items.
 
Methods inherited from class org.basex.query.path.AxisPath
addPred, addText, comp, get, invertPath, plan, removable, remove, returned, sameAs, size, toString, uses
 
Methods inherited from class org.basex.query.path.Path
color, toString
 
Methods inherited from class org.basex.query.expr.Expr
atomic, checkCtx, checkDbl, checkItr, e, ebv, i, indexAccessible, indexEquivalent, test, v
 
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
 

Constructor Detail

IterPath

public IterPath(Expr r,
                Step[] s)
Constructor.

Parameters:
r - root expression
s - location steps
Method Detail

iter

public Iter iter(QueryContext ctx)
Description copied from class: Expr
Evaluates the expression and returns an iterator on the resulting items. If this method is not overwritten, Expr.atomic(org.basex.query.QueryContext) must be implemented.

Overrides:
iter in class AxisPath
Parameters:
ctx - query context
Returns:
resulting item

duplicates

public boolean duplicates(QueryContext ctx)
Description copied from class: Expr
Returns true if the expression might yield duplicates and unsorted results.

Overrides:
duplicates in class Expr
Parameters:
ctx - query context
Returns:
result of check