com.hlcl.rql.hip.as
Class PhysicalPagesWalker

java.lang.Object
  extended by com.hlcl.rql.hip.as.PhysicalPagesWalker

public class PhysicalPagesWalker
extends java.lang.Object

Author:
lejafr This class invokes a page action on all physical pages found in the tree below the given start page.

Double linked physical pages are not investigated twice.


Constructor Summary
PhysicalPagesWalker(java.sql.Connection connection, java.lang.String setTableName)
          Constructor.
 
Method Summary
 void setListener(PageListener dependentListener)
          Setzt den aghängigen listener, der über jede neue physical page informiert wird, um einen fortschritt anzuzeigen.
 int size()
          Returns the number of pages in the tree.
 void walk(Page startPage, PageAction physicalPageAction)
          For the start page (should be a physical page as well) and all physical pages below invoke the page action.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalPagesWalker

public PhysicalPagesWalker(java.sql.Connection connection,
                           java.lang.String setTableName)
                    throws RQLException
Constructor. Feed with the page info set to be sure not to investigate same page twice.

Throws:
RQLException
Method Detail

walk

public void walk(Page startPage,
                 PageAction physicalPageAction)
          throws RQLException
For the start page (should be a physical page as well) and all physical pages below invoke the page action.

Throws:
RQLException

setListener

public void setListener(PageListener dependentListener)
Setzt den aghängigen listener, der über jede neue physical page informiert wird, um einen fortschritt anzuzeigen.


size

public int size()
         throws RQLException
Returns the number of pages in the tree.

Throws:
RQLException