org.basex.query.ft
Class FTScope

java.lang.Object
  extended by org.basex.data.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.expr.ParseExpr
              extended by org.basex.query.ft.FTExpr
                  extended by org.basex.query.ft.FTFilter
                      extended by org.basex.query.ft.FTScope

public final class FTScope
extends FTFilter

FTScope expression.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Flag
 
Field Summary
 
Fields inherited from class org.basex.query.ft.FTExpr
expr
 
Fields inherited from class org.basex.query.expr.ParseExpr
info, size, type
 
Constructor Summary
FTScope(InputInfo ii, FTExpr e, FTUnit u, boolean s)
          Constructor.
 
Method Summary
 FTExpr copy(QueryContext ctx, VarScope scp, IntObjMap<Var> vs)
          Copies an expression.
protected  boolean filter(QueryContext ctx, FTMatch mtc, FTLexer lex)
          Evaluates the filter expression.
 void plan(FElem plan)
          Creates an expression tree.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.ft.FTFilter
indexAccessible, item, iter
 
Methods inherited from class org.basex.query.ft.FTExpr
accept, checkUp, compile, count, exprSize, has, indexEquivalent, inline, optimize, removable
 
Methods inherited from class org.basex.query.expr.ParseExpr
checkAdmin, checkAllUp, checkBinary, checkBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkFunc, checkItem, checkItr, checkItr, checkMap, checkNode, checkNode, checkNode, checkNoEmpty, checkNoneUp, checkNoUp, checkQNm, checkStr, checkStr, checkStrBin, checkType, checkWrite, compBln, copyType, ebv, optPre, preEval, size, test, type, value
 
Methods inherited from class org.basex.query.expr.Expr
addText, compEbv, copy, hasFreeVars, inlineAll, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, sameAs, uses, visitAll
 
Methods inherited from class org.basex.data.ExprInfo
addPlan, addPlan, description, info, planAttr, planElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTScope

public FTScope(InputInfo ii,
               FTExpr e,
               FTUnit u,
               boolean s)
Constructor.

Parameters:
ii - input info
e - expression
u - unit
s - same flag
Method Detail

filter

protected boolean filter(QueryContext ctx,
                         FTMatch mtc,
                         FTLexer lex)
Description copied from class: FTFilter
Evaluates the filter expression.

Specified by:
filter in class FTFilter
Parameters:
ctx - query context
mtc - full-text match
lex - tokenizer
Returns:
result of check

copy

public FTExpr copy(QueryContext ctx,
                   VarScope scp,
                   IntObjMap<Var> vs)
Description copied from class: Expr
Copies an expression. Will be useful for inlining functions, or for copying static queries.

Specified by:
copy in class FTExpr
Parameters:
ctx - query context
scp - variable scope for creating new variables
vs - mapping from old variable IDs to new variable copies
Returns:
copied expression

plan

public void plan(FElem plan)
Description copied from class: ExprInfo
Creates an expression tree.

Overrides:
plan in class FTExpr
Parameters:
plan - root element

toString

public java.lang.String toString()
Overrides:
toString in class FTFilter