|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.Window
ch.ethz.mxquery.update.store.llImpl.LLStoreIterator
public class LLStoreIterator
Iterator hides the XML Store functionality and behaves like the Iterator from the MXQuery.
| 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 | |
|---|---|
LLStoreIterator(Identifier startID,
LLStore store)
Constructor. |
|
| Method Summary | |
|---|---|
void |
destroyWindow()
Destroys the connection to the window buffer and gives the used item free for garbage collection |
boolean |
equals(java.lang.Object other)
|
XDMIterator |
getItem(int position)
Returns the item on the given Position. |
Window |
getNewItemWindow(IntegerList values)
Returns a new iterator consisting of the given items in the integer list. |
Window |
getNewWindow(int startPosition,
int endPosition)
Returns a new iterator for a given start and end position. |
int |
getPosition()
|
java.lang.String |
getSourceURI()
|
int |
getStartNode()
Returns the first node id of the window |
Source |
getStore()
|
int |
getWindowId()
Every window has a unique id given by the buffer the window is working on. |
int |
hashCode()
|
boolean |
hasItem(int position)
Checks if the given position is availabe |
boolean |
hasNextItem()
Returns true if there is an item at all or if the actual item as a sibling. |
boolean |
isEmpty()
|
boolean |
isWindowInUse()
If a window is not in use it is a schema for other windows. |
Token |
next()
Produces the next XDM token This method typically implements the base functionality of an Iterator and computes the value of the next token. |
XDMIterator |
nextItem()
Returns the next item. |
void |
setContext(Context context,
boolean recursive)
Assigns a context for this iterator (and possibly for its subIterators), replacing the existing context |
void |
setWindowInUse(boolean windowInUse)
Specifies if a window can be used again. |
| Methods inherited from class ch.ethz.mxquery.model.Window |
|---|
getEndPosition, getNewEarlyParallelWindowInterface, getNewEarlyWindowInterface, 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, 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 |
| Constructor Detail |
|---|
public LLStoreIterator(Identifier startID,
LLStore store)
startID - the id of the node on which the iteration should startstore - store on which to generate the| Method Detail |
|---|
public Token next()
throws MXQueryException
XDMIterator
MXQueryException
public int getStartNode()
throws MXQueryException
Window
getStartNode in class WindowMXQueryException
public boolean isEmpty()
throws MXQueryException
MXQueryException
public XDMIterator getItem(int position)
throws MXQueryException
IndexIterator
position - Position in the sequence (starting with 1)
MXQueryException
public Window getNewWindow(int startPosition,
int endPosition)
throws MXQueryException
Window
getNewWindow in class WindowMXQueryException
public boolean hasItem(int position)
throws MXQueryException
IndexIterator
position - Position in the sequence (starting with 1)
MXQueryException
public boolean hasNextItem()
throws MXQueryException
MXQueryException
public XDMIterator nextItem()
throws MXQueryException
IndexIterator
MXQueryException
public void setContext(Context context,
boolean recursive)
XDMIterator
setContext in interface XDMIteratorsetContext in class Iteratorcontext - the context to assignrecursive - true perform the assignment also subiteratos, false only replace on the current iteratorpublic void destroyWindow()
Window
destroyWindow in class Windowpublic boolean equals(java.lang.Object other)
equals in class Windowpublic Window getNewItemWindow(IntegerList values)
Window
getNewItemWindow in class Windowvalues - Each value in the integer list has to be a position
public int getWindowId()
Window
getWindowId in class Windowpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isWindowInUse()
Window
isWindowInUse in class Windowpublic void setWindowInUse(boolean windowInUse)
Window
setWindowInUse in class Windowpublic java.lang.String getSourceURI()
public int getPosition()
getPosition in class Windowpublic Source getStore()
getStore in class Window
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||