MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.bindings
Class WindowFactory

java.lang.Object
  extended by ch.ethz.mxquery.bindings.WindowFactory

public class WindowFactory
extends java.lang.Object


Constructor Summary
WindowFactory()
           
 
Method Summary
static Window getNewWindow_Eager(Context runtime, XDMIterator sourceIter)
          TODO Can be deleted as soon as the eager materialization of irinas store works.
static Window getNewWindow(Context context, XDMIterator sourceIter)
          Returns a new window iterator on the source and creates a store (if there is not already one)
static Window getNewWindow(Context context, XDMIterator sourceIter, boolean sync)
          The same as getNewWindowInterface(Iterator sourceIter) but with synhronization for LR
static Window getNewWindow(Context context, XDMIterator sourceIter, int startPosition, int endPosition)
          Returns a new window iterator on the source with specific start and end positions
static Window getNewWindow(Context runtime, XDMIterator sourceIter, int startPosition, int endPosition, boolean sync)
          Returns a new window iterator for a source sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowFactory

public WindowFactory()
Method Detail

getNewWindow

public static Window getNewWindow(Context runtime,
                                  XDMIterator sourceIter,
                                  int startPosition,
                                  int endPosition,
                                  boolean sync)
                           throws MXQueryException
Returns a new window iterator for a source sequence. When the source sequence is already by an WindowBuffer the returned window works than on the same buffer

Parameters:
sourceIter -
startPosition -
endPosition -
sync -
Returns:
a new Window for the iterator, spanning the given start and end positions
Throws:
MXQueryException

getNewWindow_Eager

public static Window getNewWindow_Eager(Context runtime,
                                        XDMIterator sourceIter)
                                 throws MXQueryException
TODO Can be deleted as soon as the eager materialization of irinas store works.

Parameters:
sourceIter -
Returns:
an eagerly (i.e. completely on first call) materializing window
Throws:
MXQueryException

getNewWindow

public static Window getNewWindow(Context context,
                                  XDMIterator sourceIter)
                           throws MXQueryException
Returns a new window iterator on the source and creates a store (if there is not already one)

Parameters:
context -
sourceIter -
Returns:
A window for the given input iterator
Throws:
MXQueryException

getNewWindow

public static Window getNewWindow(Context context,
                                  XDMIterator sourceIter,
                                  boolean sync)
                           throws MXQueryException
The same as getNewWindowInterface(Iterator sourceIter) but with synhronization for LR

Parameters:
context -
sourceIter -
sync -
Returns:
a window for the given input iterator
Throws:
MXQueryException

getNewWindow

public static Window getNewWindow(Context context,
                                  XDMIterator sourceIter,
                                  int startPosition,
                                  int endPosition)
                           throws MXQueryException
Returns a new window iterator on the source with specific start and end positions

Parameters:
context -
sourceIter -
startPosition - start of the window
endPosition - end of the window
Returns:
a window for this input, spanning the given positions
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich