MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.bindings
Class WindowTokenIterator

java.lang.Object
  extended by ch.ethz.mxquery.model.Iterator
      extended by ch.ethz.mxquery.model.Window
          extended by ch.ethz.mxquery.bindings.WindowIterator
              extended by ch.ethz.mxquery.bindings.WindowTokenIterator
All Implemented Interfaces:
IndexIterator, XDMIterator, Traversable
Direct Known Subclasses:
WindowEarlyBinding, WindowEarlyBindingParallel, WindowItemIterator

public abstract class WindowTokenIterator
extends WindowIterator


Field Summary
 
Fields inherited from class ch.ethz.mxquery.model.Window
END_OF_STREAM_NODE, END_OF_STREAM_POSITION
 
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
WindowTokenIterator(WindowBuffer mat, int startNodeId, int id)
          Creates a new window item iterator.
 
Method Summary
 int getPosition()
           
 int getStartNode()
          Returns the first node id of the window
 
Methods inherited from class ch.ethz.mxquery.bindings.WindowIterator
destroyWindow, equals, getStore, getWindowId, hashCode, isWindowInUse, setContext, setWindowInUse
 
Methods inherited from class ch.ethz.mxquery.model.Window
getEndPosition, getNewEarlyParallelWindowInterface, getNewEarlyWindowInterface, getNewItemWindow, getNewWindow, getNextWindowStartPosition, getUnderlyingWindow, increasePosition, isExprParameter, isWindow, jumpToNextAttribute, setPosition
 
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, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, setResettable, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse, traverseIteratorTree
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.ethz.mxquery.model.IndexIterator
getItem, hasItem, hasNextItem, nextItem
 
Methods inherited from interface ch.ethz.mxquery.model.XDMIterator
next
 

Constructor Detail

WindowTokenIterator

public WindowTokenIterator(WindowBuffer mat,
                           int startNodeId,
                           int id)
Creates a new window item iterator. In contrast to a WindowSequenceIterator it allows to define sequences which don't exist only of ongoing numbers. But the positions in nodeIds have to be orders, such that for the position p1, p2, p3 ... pn the following is valic p1 < p2

Parameters:
mat - underlying window buffer
startNodeId - start position
id -
Method Detail

getPosition

public int getPosition()
Specified by:
getPosition in class Window

getStartNode

public int getStartNode()
Description copied from class: Window
Returns the first node id of the window

Specified by:
getStartNode in class WindowIterator
Returns:
returns the first node id of this window

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich