Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.store.access.conglomerate
Class GenericController  view GenericController download GenericController.java

java.lang.Object
  extended byorg.apache.derby.impl.store.access.conglomerate.GenericController
Direct Known Subclasses:
GenericConglomerateController, GenericCostController, GenericScanController

public abstract class GenericController
extends java.lang.Object


Field Summary
protected  OpenConglomerate open_conglom
          Fields of the class
 
Constructor Summary
GenericController()
           
 
Method Summary
 void checkConsistency()
          Public Methods implementing ConglomerateController which just delegate to OpenConglomerate:
 void close()
           
 void debugConglomerate()
           
 long getEstimatedRowCount()
          Get the total estimated number of rows in the container.
 java.util.Properties getInternalTablePropertySet(java.util.Properties prop)
           
 OpenConglomerate getOpenConglom()
           
protected  void getRowPositionFromRowLocation(org.apache.derby.iapi.types.RowLocation row_loc, RowPosition pos)
          Private/Protected methods of This class:
 org.apache.derby.iapi.store.access.SpaceInfo getSpaceInfo()
           
 void getTableProperties(java.util.Properties prop)
           
 void init(OpenConglomerate open_conglom)
          Public Methods of This class:
 boolean isKeyed()
           
 boolean isTableLocked()
          is the open btree table locked?
 org.apache.derby.iapi.types.RowLocation newRowLocationTemplate()
           
protected  void queueDeletePostCommitWork(RowPosition pos)
           
 void setEstimatedRowCount(long count)
          Set the total estimated number of rows in the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

open_conglom

protected OpenConglomerate open_conglom
Fields of the class

Constructor Detail

GenericController

public GenericController()
Method Detail

getRowPositionFromRowLocation

protected void getRowPositionFromRowLocation(org.apache.derby.iapi.types.RowLocation row_loc,
                                             RowPosition pos)
                                      throws org.apache.derby.iapi.error.StandardException
Private/Protected methods of This class:


queueDeletePostCommitWork

protected void queueDeletePostCommitWork(RowPosition pos)
                                  throws org.apache.derby.iapi.error.StandardException

init

public void init(OpenConglomerate open_conglom)
          throws org.apache.derby.iapi.error.StandardException
Public Methods of This class:


getOpenConglom

public OpenConglomerate getOpenConglom()

checkConsistency

public void checkConsistency()
                      throws org.apache.derby.iapi.error.StandardException
Public Methods implementing ConglomerateController which just delegate to OpenConglomerate:


debugConglomerate

public void debugConglomerate()
                       throws org.apache.derby.iapi.error.StandardException

getTableProperties

public void getTableProperties(java.util.Properties prop)
                        throws org.apache.derby.iapi.error.StandardException

getInternalTablePropertySet

public java.util.Properties getInternalTablePropertySet(java.util.Properties prop)
                                                 throws org.apache.derby.iapi.error.StandardException

getSpaceInfo

public org.apache.derby.iapi.store.access.SpaceInfo getSpaceInfo()
                                                          throws org.apache.derby.iapi.error.StandardException

close

public void close()
           throws org.apache.derby.iapi.error.StandardException

isKeyed

public boolean isKeyed()

newRowLocationTemplate

public org.apache.derby.iapi.types.RowLocation newRowLocationTemplate()
                                                               throws org.apache.derby.iapi.error.StandardException

isTableLocked

public boolean isTableLocked()
is the open btree table locked?


getEstimatedRowCount

public long getEstimatedRowCount()
                          throws org.apache.derby.iapi.error.StandardException
Get the total estimated number of rows in the container.

The number is a rough estimate and may be grossly off. In general the server will cache the row count and then occasionally write the count unlogged to a backing store. If the system happens to shutdown before the store gets a chance to update the row count it may wander from reality.

This call is currently only supported on Heap conglomerates, it will throw an exception if called on btree conglomerates.


setEstimatedRowCount

public void setEstimatedRowCount(long count)
                          throws org.apache.derby.iapi.error.StandardException
Set the total estimated number of rows in the container.

Often, after a scan, the client of RawStore has a much better estimate of the number of rows in the container than what store has. For instance if we implement some sort of update statistics command, or just after a create index a complete scan will have been done of the table. In this case this interface allows the client to set the estimated row count for the container, and store will use that number for all future references.

This call is currently only supported on Heap conglomerates, it will throw an exception if called on btree conglomerates.