org.apache.derby.impl.store.access.btree.index
Class B2ICostController

java.lang.Object
  extended byorg.apache.derby.impl.store.access.btree.OpenBTree
      extended byorg.apache.derby.impl.store.access.btree.BTreeCostController
          extended byorg.apache.derby.impl.store.access.btree.index.B2ICostController
All Implemented Interfaces:
RowCountable, StoreCostController

public class B2ICostController
extends BTreeCostController

Controller used to provide cost estimates to optimizer about secondary index data access. Implements the StoreCostController interface for the B-Tree index implementation. The primary use of this interface is to provide costs used by the query optimizer to use when choosing query plans. Provides costs of things like fetch one row, how many rows in conglomerate, how many rows between these 2 keys. Note most work of this class is inherited from the generic btree implementation. This class initializes the top level object and deals with locking information specific to a secondary index implementation of a btree.


Field Summary
 
Fields inherited from class org.apache.derby.impl.store.access.btree.BTreeCostController
 
Fields inherited from class org.apache.derby.impl.store.access.btree.OpenBTree
btree_undo, container, err_containerid, init_lock_level, init_open_user_scans, runtime_mem
 
Fields inherited from interface org.apache.derby.iapi.store.access.StoreCostController
BASE_CACHED_ROW_FETCH_COST, BASE_GROUPSCAN_ROW_COST, BASE_HASHSCAN_ROW_FETCH_COST, BASE_NONGROUPSCAN_ROW_FETCH_COST, BASE_ROW_PER_BYTECOST, BASE_UNCACHED_ROW_FETCH_COST, STORECOST_CLUSTERED, STORECOST_SCAN_NORMAL, STORECOST_SCAN_SET
 
Constructor Summary
(package private) B2ICostController()
           
 
Method Summary
(package private)  void init(TransactionManager xact_manager, B2I conglomerate, Transaction rawtran)
           
 
Methods inherited from class org.apache.derby.impl.store.access.btree.BTreeCostController
close, getFetchFromFullKeyCost, getFetchFromRowLocationCost, getScanCost, init, newRowLocationTemplate
 
Methods inherited from class org.apache.derby.impl.store.access.btree.OpenBTree
checkConsistency, debugConglomerate, getColumnSortOrderInfo, getConglomerate, getContainer, getContainerHandle, getEstimatedRowCount, getHeight, getHold, getLockingPolicy, getLockLevel, getOpenMode, getRawTran, getRuntimeMem, getSpaceInfo, getXactMgr, init, isClosed, isTableLocked, makeRecordHandle, reopen, setEstimatedRowCount, setLockingPolicy, test_errors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.iapi.store.access.RowCountable
getEstimatedRowCount, setEstimatedRowCount
 

Constructor Detail

B2ICostController

B2ICostController()
Method Detail

init

void init(TransactionManager xact_manager,
          B2I conglomerate,
          Transaction rawtran)
    throws StandardException
Throws:
StandardException

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.