MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.functions.fn
Class BooleanIterator

java.lang.Object
  extended by ch.ethz.mxquery.model.Iterator
      extended by ch.ethz.mxquery.model.TokenBasedIterator
          extended by ch.ethz.mxquery.functions.fn.BooleanIterator
All Implemented Interfaces:
XDMIterator, Traversable

public class BooleanIterator
extends TokenBasedIterator


Field Summary
 
Fields inherited from interface ch.ethz.mxquery.model.XDMIterator
EXPR_CATEGORY_SEQUENTIAL, EXPR_CATEGORY_SIMPLE, EXPR_CATEGORY_UPDATING, EXPR_CATEGORY_VACUOUS, EXPR_PARAM_CHEAPEVAL, EXPR_PARAM_VARIABLE, EXPR_PARAM_WINDOW, EXPR_PARAM_XDMGEN
 
Constructor Summary
BooleanIterator()
           
BooleanIterator(Context ctx, XDMIterator[] subIters, QueryLocation location)
           
 
Method Summary
static XDMIterator createEBVIterator(XDMIterator iter, Context ctx)
          Creates a EffectiveBooleanIterator that can never return an empty sequence
 TypeInfo getStaticType()
          Return the return type if it can be statically determined
 
Methods inherited from class ch.ethz.mxquery.model.TokenBasedIterator
next
 
Methods inherited from class ch.ethz.mxquery.model.Iterator
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, setResettable, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse, traverseIteratorTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanIterator

public BooleanIterator(Context ctx,
                       XDMIterator[] subIters,
                       QueryLocation location)

BooleanIterator

public BooleanIterator()
Method Detail

createEBVIterator

public static XDMIterator createEBVIterator(XDMIterator iter,
                                            Context ctx)
Creates a EffectiveBooleanIterator that can never return an empty sequence

Parameters:
iter -
Returns:
a boolean iterator, unless iter already produces either true or false

getStaticType

public TypeInfo getStaticType()
Description copied from interface: XDMIterator
Return the return type if it can be statically determined

Specified by:
getStaticType in interface XDMIterator
Overrides:
getStaticType in class Iterator
Returns:
a Type info carrying the most precise static type that could be determined. If no specific type could be determined, the type is ITEM*

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich