MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.iterators
Class CompareIterator

java.lang.Object
  extended by ch.ethz.mxquery.model.Iterator
      extended by ch.ethz.mxquery.model.TokenBasedIterator
          extended by ch.ethz.mxquery.iterators.CompareIterator
All Implemented Interfaces:
XDMIterator, Traversable

public class CompareIterator
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
CompareIterator(Context ctx, int compareType, int comparator, XDMIterator[] subIters, QueryLocation location)
           
 
Method Summary
 int getComparator()
           
 int getCompareType()
           
 XDMIterator getLeftPart()
           
 XDMIterator getRightPart()
           
 void setResettable(boolean r)
          Set this Iterator (and its subiterators) resetable.
 
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, getStaticType, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, 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

CompareIterator

public CompareIterator(Context ctx,
                       int compareType,
                       int comparator,
                       XDMIterator[] subIters,
                       QueryLocation location)
                throws MXQueryException
Throws:
MXQueryException
Method Detail

setResettable

public void setResettable(boolean r)
                   throws MXQueryException
Description copied from interface: XDMIterator
Set this Iterator (and its subiterators) resetable. Resetable iterators may require more space (trading buffered data against recomputation)

Specified by:
setResettable in interface XDMIterator
Overrides:
setResettable in class Iterator
Parameters:
r - true make this iterator resetable, false make it not resetable
Throws:
MXQueryException

getComparator

public int getComparator()

getCompareType

public int getCompareType()

getLeftPart

public XDMIterator getLeftPart()

getRightPart

public XDMIterator getRightPart()

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich