org.axiondb.engine.rowiterators
Class LimitingRowIterator

java.lang.Object
  extended by org.axiondb.engine.rowiterators.DelegatingRowIterator
      extended by org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
          extended by org.axiondb.engine.rowiterators.LimitingRowIterator
All Implemented Interfaces:
RowIterator

public class LimitingRowIterator
extends AbstractFilteringRowIterator

RowIterator implementing LIMIT and OFFSET.

Version:
$Revision: 1.9 $ $Date: 2004/09/09 23:47:43 $

Constructor Summary
LimitingRowIterator(RowIterator iter, Literal limit, Literal offset)
           
 
Method Summary
protected  boolean determineNextRow()
           
protected  boolean determinePreviousRow()
           
 String toString()
           
 
Methods inherited from class org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
add, clearNextRow, clearPreviousRow, current, currentIndex, first, hasCurrent, hasNext, hasPrevious, isNextAvailable, isPreviousAvailable, last, next, nextIndex, peekNext, peekPrevious, previous, previousIndex, remove, reset, set, setNext, setPrevious
 
Methods inherited from class org.axiondb.engine.rowiterators.DelegatingRowIterator
getDelegate, isEmpty, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LimitingRowIterator

public LimitingRowIterator(RowIterator iter,
                           Literal limit,
                           Literal offset)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

determineNextRow

protected boolean determineNextRow()
                            throws AxionException
Specified by:
determineNextRow in class AbstractFilteringRowIterator
Throws:
AxionException

determinePreviousRow

protected boolean determinePreviousRow()
                                throws AxionException
Specified by:
determinePreviousRow in class AbstractFilteringRowIterator
Throws:
AxionException