org.basex.query.xpath.expr
Class FTIntersection

java.lang.Object
  extended by org.basex.query.xpath.expr.Expr
      extended by org.basex.query.xpath.expr.ArrayExpr
          extended by org.basex.query.xpath.expr.FTIntersection

public final class FTIntersection
extends ArrayExpr

FTIntersection Expression. This expresses the intersection of two FTContains results.

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

Field Summary
 
Fields inherited from class org.basex.query.xpath.expr.ArrayExpr
exprs
 
Constructor Summary
FTIntersection(Expr[] e)
          Constructor.
 
Method Summary
 int[][] calculateFTAnd(int[][] val1, int[][] val2)
          Built join for value1 and value2; used key is id.
 Expr compile(XPContext ctx)
          Tries to optimize the Expression.
 NodeSet eval(XPContext ctx)
          Evaluates the expression with the specified context set.
 
Methods inherited from class org.basex.query.xpath.expr.ArrayExpr
sameAs, toString, usesPos, usesSize
 
Methods inherited from class org.basex.query.xpath.expr.Expr
indexEquivalent, indexSizes, returnedValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTIntersection

public FTIntersection(Expr[] e)
Constructor.

Parameters:
e - operands joined with the union operator
Method Detail

calculateFTAnd

public int[][] calculateFTAnd(int[][] val1,
                              int[][] val2)
Built join for value1 and value2; used key is id.

Parameters:
val1 - input set int[][]
val2 - input set int[][]
Returns:
result int[][]

compile

public Expr compile(XPContext ctx)
             throws EvalException
Description copied from class: Expr
Tries to optimize the Expression.

Specified by:
compile in class Expr
Parameters:
ctx - expression context
Returns:
optimized Expression
Throws:
EvalException - evaluation exception

eval

public NodeSet eval(XPContext ctx)
             throws EvalException
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:
EvalException - evaluation exception