|
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.bindings.WindowBuffer
public final class WindowBuffer
Based on a TokenBuffer this class is a factory for window iterators. Each
window iterator which uses the same WindowBuffer operates on the same
materialized stream. Additionally this class provides some access
functionalities for window iterators.
Important definitions:
item: Is a item in a sequence
position: Position as in XQuery. First position is 1.
nodeId: Like Position but starting with 0
tokenId: Id of each token. Also starting with 0
| Constructor Summary | |
|---|---|
WindowBuffer(StreamStore streamStore)
|
|
WindowBuffer(XDMIterator sourceIter,
boolean sync,
int size,
int garbColl,
boolean sameSchema)
|
|
WindowBuffer(XDMIterator sourceIter,
boolean full_text,
java.lang.String uri)
|
|
| Method Summary | |
|---|---|
int |
compare(Source store)
|
WindowBuffer |
copy(Context context,
java.util.Vector nestedPredCtxStack)
|
Source |
copySource(Context ctx,
java.util.Vector nestedPredCtxStack)
|
StreamStore |
getBuffer()
|
int |
getBufferId()
|
WindowIterator |
getEmptySequence()
Returns a emptySequence iterator. |
Window |
getIterator(Context ctx)
Returns Iterator that points on the first token in the store. |
WindowEarlyBindingParallel |
getNewEarlyParallelWindowInterface(int startPosition,
WindowVariable[] startVars,
VariableHolder[] startVarHolders,
XDMIterator endExpr,
WindowVariable[] endVars,
VariableHolder[] endVarHolders)
|
WindowEarlyBinding |
getNewEarlyWindowInterface(int startPosition,
XDMIterator startExpr,
WindowVariable[] startVars,
VariableHolder[] startVarHolders,
XDMIterator endExpr,
WindowVariable[] endVars,
VariableHolder[] endVarHolders)
|
static Window |
getNewWindowInterface(XDMIterator sourceIter,
int startPosition,
int endPosition,
boolean sync,
int size,
int garbColl,
boolean sameSchema)
This method returns a new Window Iterator. |
WindowIterator |
getNewWindowIterator(IntegerList positions)
Return a new Window for the given positions |
WindowIterator |
getNewWindowIterator(int startPosition,
int endPosition)
Returns a new window iterator for the given range |
java.lang.String |
getURI()
Returns the URI of the source. |
void |
setContext(Context context)
Sets the context. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowBuffer(StreamStore streamStore)
public WindowBuffer(XDMIterator sourceIter,
boolean sync,
int size,
int garbColl,
boolean sameSchema)
throws MXQueryException
MXQueryException
public WindowBuffer(XDMIterator sourceIter,
boolean full_text,
java.lang.String uri)
throws MXQueryException
MXQueryException| Method Detail |
|---|
public int getBufferId()
public StreamStore getBuffer()
public WindowIterator getEmptySequence()
public WindowIterator getNewWindowIterator(int startPosition,
int endPosition)
startPosition - endPosition -
public WindowIterator getNewWindowIterator(IntegerList positions)
positions -
public WindowEarlyBinding getNewEarlyWindowInterface(int startPosition,
XDMIterator startExpr,
WindowVariable[] startVars,
VariableHolder[] startVarHolders,
XDMIterator endExpr,
WindowVariable[] endVars,
VariableHolder[] endVarHolders)
public WindowEarlyBindingParallel getNewEarlyParallelWindowInterface(int startPosition,
WindowVariable[] startVars,
VariableHolder[] startVarHolders,
XDMIterator endExpr,
WindowVariable[] endVars,
VariableHolder[] endVarHolders)
public void setContext(Context context)
throws MXQueryException
context -
MXQueryException
public static Window getNewWindowInterface(XDMIterator sourceIter,
int startPosition,
int endPosition,
boolean sync,
int size,
int garbColl,
boolean sameSchema)
throws MXQueryException
sourceIter - startPosition - endPosition - sync - size - garbColl - sameSchema -
MXQueryException
public WindowBuffer copy(Context context,
java.util.Vector nestedPredCtxStack)
throws MXQueryException
MXQueryExceptionpublic int compare(Source store)
compare in interface Source
public Source copySource(Context ctx,
java.util.Vector nestedPredCtxStack)
throws MXQueryException
copySource in interface SourceMXQueryException
public Window getIterator(Context ctx)
throws MXQueryException
Source
getIterator in interface SourceMXQueryExceptionpublic java.lang.String getURI()
Source
getURI in interface Source
|
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 | ||||||||