MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.iterators.forseq
Class ForseqWindowNaiveIterator

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

public final class ForseqWindowNaiveIterator
extends ForseqWindowIterator

The first naive implementation of the FORSEQ Window


Field Summary
 
Fields inherited from class ch.ethz.mxquery.iterators.forseq.ForseqIterator
GENERAL_WINDOW, LANDMARK_WINDOW, ORDER_MODE_END, ORDER_MODE_ENDSTART, ORDER_MODE_NONE, SLIDING_WINDOW, TUMBLING_WINDOW
 
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
ForseqWindowNaiveIterator(Context ctx, int windowType, QName var, TypeInfo t, XDMIterator seq, WindowVariable[] startVars, XDMIterator startExpr, WindowVariable[] endVars, XDMIterator endExpr, boolean forceEnd, boolean onNewStart, int orderMode, QueryLocation location)
           
 
Method Summary
 void setContext(Context context, boolean recursive)
          Assigns a context for this iterator (and possibly for its subIterators), replacing the existing context
 void setResettable(boolean r)
          Set this Iterator (and its subiterators) resetable.
 
Methods inherited from class ch.ethz.mxquery.iterators.forseq.ForseqWindowIterator
getAllSubIters, getForseqVars, getInnermostContext, traverseIteratorTree, updateVarHolders
 
Methods inherited from class ch.ethz.mxquery.iterators.forseq.ForseqIterator
copy, getForseqVariable, isParallelAccess, next, setParallelAccess
 
Methods inherited from class ch.ethz.mxquery.model.Iterator
addPredicates, close, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getStaticType, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setLoc, setOrderByExpr, setParam, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForseqWindowNaiveIterator

public ForseqWindowNaiveIterator(Context ctx,
                                 int windowType,
                                 QName var,
                                 TypeInfo t,
                                 XDMIterator seq,
                                 WindowVariable[] startVars,
                                 XDMIterator startExpr,
                                 WindowVariable[] endVars,
                                 XDMIterator endExpr,
                                 boolean forceEnd,
                                 boolean onNewStart,
                                 int orderMode,
                                 QueryLocation location)
                          throws MXQueryException
Throws:
MXQueryException
Method Detail

setContext

public void setContext(Context context,
                       boolean recursive)
                throws MXQueryException
Description copied from interface: XDMIterator
Assigns a context for this iterator (and possibly for its subIterators), replacing the existing context

Specified by:
setContext in interface XDMIterator
Overrides:
setContext in class ForseqWindowIterator
Parameters:
context - the context to assign
recursive - true perform the assignment also subiteratos, false only replace on the current iterator
Throws:
MXQueryException

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 ForseqWindowIterator
Parameters:
r - true make this iterator resetable, false make it not resetable
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich