Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.query.xpath.expr
Class FTAnd

    java.lang.Object
      org.basex.query.ExprInfo
          org.basex.query.xpath.expr.Expr
              org.basex.query.xpath.expr.FTArrayExpr
                  org.basex.query.xpath.expr.FTAnd

    public final class FTAnd

extends FTArrayExpr

Logical FTAnd expression.

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

Field Summary

Fields inherited from class org.basex.query.xpath.expr.FTArrayExpr
`fto`

Constructor Summary
`FTAnd(FTArrayExpr[] e)` Constructor.

Method Summary
`void` | `add(FTArrayExpr ex)` Add Expr to list.
`FTArrayExpr` | `comp(XPContext ctx)` Optimizes the expression.
`Bln` | `eval(XPContext ctx)` Evaluates the expression with the specified context set.
`FTArrayExpr` | `indexEquivalent(XPContext ctx, Step curr, boolean seq)` Returns an equivalent expression which accesses an index structure.
`int` | `indexSizes(XPContext ctx, Step curr, int min)` Returns the number of results if this query is evaluated by an index.

Methods inherited from class org.basex.query.xpath.expr.FTArrayExpr
`indexOptions, more, next, plan, pos, toString, usesPos, usesSize`

Methods inherited from class org.basex.query.xpath.expr.Expr
`returnedValue, sameAs`

Methods inherited from class org.basex.query.ExprInfo
`color, info, name`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### FTAnd

    public FTAnd(FTArrayExpr[] e)

  Constructor.

  Parameters:
    `e` - expressions

Method Detail

### eval

    public Bln eval(XPContext ctx)
             throws QueryException

  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:
    `QueryException` - evaluation exception

### comp

    public FTArrayExpr comp(XPContext ctx)
                     throws QueryException

  Description copied from class: `FTArrayExpr`
  Optimizes the expression.

  Overrides:
    `comp` in class `FTArrayExpr`
  Parameters:
    `ctx` - expression context
  Returns:
    optimized Expression
  Throws:
    `QueryException` - evaluation exception

### indexEquivalent

    public FTArrayExpr indexEquivalent(XPContext ctx,
                                       Step curr,
                                       boolean seq)
                                throws QueryException

  Description copied from class: `Expr`
  Returns an equivalent expression which accesses an index structure.

  Overrides:
    `indexEquivalent` in class `FTArrayExpr`
  Parameters:
    `ctx` - root
    `curr` - location step
    `seq` - flag for sequential evaluation
  Returns:
    Equivalent index-expression or null
  Throws:
    `QueryException` - evaluation exception

### add

    public void add(FTArrayExpr ex)

  Add Expr to list.

  Parameters:
    `ex` - new Expr

### indexSizes

    public int indexSizes(XPContext ctx,
                          Step curr,
                          int min)

  Description copied from class: `Expr`
  Returns the number of results if this query is evaluated by an index. If `Integer.MAX_VALUE` is returned, no index access is possible.

  Overrides:
    `indexSizes` in class `Expr`
  Parameters:
    `ctx` - root
    `curr` - the current location step
    `min` - current minimum index hits
  Returns:
    number of expected results

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD