org.basex.query.ft
Class FTIndexAccess
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Simple
org.basex.query.ft.FTIndexAccess
public final class FTIndexAccess
- extends Simple
FTContains expression with index access.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
Expr.Use |
|
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. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the
specified serializer. |
boolean |
sameAs(Expr cmp)
Checks the current and specified expression for equality. |
String |
toString()
|
| Methods inherited from class org.basex.query.expr.Expr |
addText, atomic, checkCtx, checkDbl, checkItr, e, ebv, i, indexAccessible, indexEquivalent, removable, remove, returned, size, test, v |
FTIndexAccess
public FTIndexAccess(FTExpr ex,
IndexContext ic)
- Constructor.
- Parameters:
ex - contains, select and optional ignore expressionic - index context
iter
public Iter iter(QueryContext ctx)
throws QueryException
- 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 Expr
- Parameters:
ctx - query context
- Returns:
- resulting item
- Throws:
QueryException - query exception
plan
public void plan(Serializer ser)
throws IOException
- Description copied from class:
ExprInfo
- Recursively sends the abstract syntax of this expression to the
specified serializer.
- Overrides:
plan in class Simple
- Parameters:
ser - serializer
- Throws:
IOException - I/O exception
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
sameAs
public boolean sameAs(Expr cmp)
- Description copied from class:
Expr
- Checks the current and specified expression for equality.
- Overrides:
sameAs in class Expr
- Parameters:
cmp - expression to be compared
- Returns:
- result of check
toString
public String toString()
- Specified by:
toString in class ExprInfo