org.basex.query.xpath.expr
Class FTIntersection
java.lang.Object
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.expr.ArrayExpr
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
| Fields inherited from class org.basex.query.xpath.expr.ArrayExpr |
exprs |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FTIntersection
public FTIntersection(Expr[] e)
- Constructor.
- Parameters:
e - operands joined with the union operator
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