|
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
public abstract class Window
A window iterator works always on a store, which materializes the tokens. A window can either be a window with a start and end edge or (also the name states something else) selected items form the store.
Field Summary | |
---|---|
static int |
END_OF_STREAM_NODE
|
static int |
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 | |
---|---|
Window()
|
Method Summary | |
---|---|
abstract void |
destroyWindow()
Destroys the connection to the window buffer and gives the used item free for garbage collection |
abstract boolean |
equals(java.lang.Object other)
|
int |
getEndPosition()
|
Window |
getNewEarlyParallelWindowInterface(int startPosition,
WindowVariable[] startVars,
VariableHolder[] startVarHolders,
XDMIterator endExpr,
WindowVariable[] endVars,
VariableHolder[] endVarHolders)
|
Window |
getNewEarlyWindowInterface(int startPosition,
XDMIterator startExpr,
WindowVariable[] startVars,
VariableHolder[] startVarHolders,
XDMIterator endExpr,
WindowVariable[] endVars,
VariableHolder[] endVarHolders)
|
abstract Window |
getNewItemWindow(IntegerList values)
Returns a new iterator consisting of the given items in the integer list. |
abstract Window |
getNewWindow(int startPosition,
int endPosition)
Returns a new iterator for a given start and end position. |
int |
getNextWindowStartPosition()
|
abstract int |
getPosition()
|
abstract int |
getStartNode()
Returns the first node id of the window |
abstract Source |
getStore()
|
Window |
getUnderlyingWindow()
|
abstract int |
getWindowId()
Every window has a unique id given by the buffer the window is working on. |
void |
increasePosition()
|
boolean |
isExprParameter(int valueToCheck,
boolean recursive)
Optimization check |
boolean |
isWindow()
|
abstract boolean |
isWindowInUse()
If a window is not in use it is a schema for other windows. |
Token |
jumpToNextAttribute(java.lang.String attributeName)
Jumps to the next attribute if possible in the form of /@attributeName If the jump is not possible, -1 is returned |
void |
setPosition(int p)
|
abstract void |
setWindowInUse(boolean windowInUse)
Specifies if a window can be used again. |
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, hashCode, 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 |
Field Detail |
---|
public static final int END_OF_STREAM_POSITION
public static final int END_OF_STREAM_NODE
Constructor Detail |
---|
public Window()
Method Detail |
---|
public Window getUnderlyingWindow() throws MXQueryException
MXQueryException
public abstract Window getNewItemWindow(IntegerList values) throws MXQueryException
values
- Each value in the integer list has to be a position
MXQueryException
public Window getNewEarlyWindowInterface(int startPosition, XDMIterator startExpr, WindowVariable[] startVars, VariableHolder[] startVarHolders, XDMIterator endExpr, WindowVariable[] endVars, VariableHolder[] endVarHolders)
public Window getNewEarlyParallelWindowInterface(int startPosition, WindowVariable[] startVars, VariableHolder[] startVarHolders, XDMIterator endExpr, WindowVariable[] endVars, VariableHolder[] endVarHolders)
public Token jumpToNextAttribute(java.lang.String attributeName) throws MXQueryException
attributeName
-
MXQueryException
public abstract Window getNewWindow(int startPosition, int endPosition) throws MXQueryException
startPosition
- endPosition
-
MXQueryException
public abstract int getStartNode() throws MXQueryException
MXQueryException
public abstract void destroyWindow()
public abstract boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public abstract int getWindowId()
public abstract boolean isWindowInUse()
public abstract void setWindowInUse(boolean windowInUse)
windowInUse
- public void increasePosition()
public void setPosition(int p)
public abstract int getPosition()
public boolean isWindow()
public boolean isExprParameter(int valueToCheck, boolean recursive)
XDMIterator
isExprParameter
in interface XDMIterator
isExprParameter
in class Iterator
public int getEndPosition()
public int getNextWindowStartPosition()
public abstract Source getStore()
|
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 |