ch.ethz.mxquery.iterators.forseq
Class ForseqWindowNaiveIterator
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.TokenBasedIterator
ch.ethz.mxquery.iterators.forseq.ForseqIterator
ch.ethz.mxquery.iterators.forseq.ForseqWindowIterator
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
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.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 |
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
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 assignrecursive
- 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