org.basex.query.xpath.expr
Class FTUnion

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.xpath.expr.Expr
          extended by org.basex.query.xpath.expr.FTArrayExpr
              extended by org.basex.query.xpath.expr.FTUnion

public final class FTUnion
extends FTArrayExpr

FTUnion Expression. This expresses the union of two FTContains results.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Sebastian Gath

Field Summary
 
Fields inherited from class org.basex.query.xpath.expr.FTArrayExpr
fto
 
Constructor Summary
FTUnion(FTArrayExpr[] e)
          Constructor.
FTUnion(FTArrayExpr[] e, int[] posex)
          Constructor.
 
Method Summary
 Bln eval(XPContext ctx)
          Evaluates the expression with the specified context set.
 boolean more()
          Checks for more results.
 FTNode next(XPContext ctx)
          Returns the next ftquery result.
 void plan(Serializer ser)
          Recursively sends the abstract syntax of this expression to the specified serializer.
 
Methods inherited from class org.basex.query.xpath.expr.FTArrayExpr
comp, indexEquivalent, indexOptions, pos, toString, usesPos, usesSize
 
Methods inherited from class org.basex.query.xpath.expr.Expr
indexSizes, returnedValue, sameAs
 
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
 

Constructor Detail

FTUnion

public FTUnion(FTArrayExpr[] e)
Constructor.

Parameters:
e - operands joined with the union operator

FTUnion

public FTUnion(FTArrayExpr[] e,
               int[] posex)
Constructor.

Parameters:
e - operands joined with the union operator
posex - pointer on exprs with positiv values
Method Detail

more

public boolean more()
Description copied from class: FTArrayExpr
Checks for more results.

Overrides:
more in class FTArrayExpr
Returns:
boolean

next

public FTNode next(XPContext ctx)
Description copied from class: FTArrayExpr
Returns the next ftquery result.

Overrides:
next in class FTArrayExpr
Parameters:
ctx - current context
Returns:
FTNode container for the next result

eval

public Bln eval(XPContext ctx)
         throws QueryException
Description copied from class: Expr
Evaluates the expression with the specified context set. Additionally provides a context

Specified by:
eval in class Expr
Parameters:
ctx - query context
Returns:
resulting XPathValue
Throws:
QueryException - evaluation exception

plan

public void plan(Serializer ser)
          throws java.io.IOException
Description copied from class: ExprInfo
Recursively sends the abstract syntax of this expression to the specified serializer.

Overrides:
plan in class FTArrayExpr
Parameters:
ser - serializer
Throws:
java.io.IOException - exception