org.basex.query.ft
Class FTContent

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.ft.FTExpr
              extended by org.basex.query.ft.FTContent

public final class FTContent
extends FTExpr

FTContent expression.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Use
 
Field Summary
 
Fields inherited from class org.basex.query.ft.FTExpr
expr
 
Constructor Summary
FTContent(FTExpr ex, boolean s, boolean e)
          Constructor.
 
Method Summary
 FTItem atomic(QueryContext ctx)
          This method is called by the sequential full-text evaluation.
 boolean indexAccessible(IndexContext ic)
          Checks if an index can be used for query evaluation.
 FTIter iter(QueryContext ctx)
          This method is called by the index-based full-text evaluation.
 void plan(Serializer ser)
          Recursively sends the abstract syntax of this expression to the specified serializer.
 String toString()
           
 
Methods inherited from class org.basex.query.ft.FTExpr
color, comp, indexEquivalent, removable, remove, returned, uses
 
Methods inherited from class org.basex.query.expr.Expr
addText, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, sameAs, size, test, v
 
Methods inherited from class org.basex.query.ExprInfo
info, name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTContent

public FTContent(FTExpr ex,
                 boolean s,
                 boolean e)
Constructor.

Parameters:
ex - expression
s - start flag
e - end flag
Method Detail

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.

Parameters:
ser - serializer
Throws:
IOException - I/O exception

toString

public String toString()

atomic

public FTItem atomic(QueryContext ctx)
              throws QueryException
Description copied from class: FTExpr
This method is called by the sequential full-text evaluation.

Specified by:
atomic in class FTExpr
Parameters:
ctx - query context
Returns:
resulting item
Throws:
QueryException - query exception

iter

public FTIter iter(QueryContext ctx)
            throws QueryException
Description copied from class: FTExpr
This method is called by the index-based full-text evaluation.

Specified by:
iter in class FTExpr
Parameters:
ctx - query context
Returns:
resulting item
Throws:
QueryException - query exception

indexAccessible

public boolean indexAccessible(IndexContext ic)
                        throws QueryException
Description copied from class: Expr
Checks if an index can be used for query evaluation.

Overrides:
indexAccessible in class Expr
Parameters:
ic - index context
Returns:
true if an index can be used
Throws:
QueryException - query exception