Class B2ICostController
java.lang.Object
org.apache.derby.impl.store.access.btree.OpenBTree
org.apache.derby.impl.store.access.btree.BTreeCostController
org.apache.derby.impl.store.access.btree.index.B2ICostController
- All Implemented Interfaces:
RowCountable
,StoreCostController
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.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
Constructors -
Method Summary
Modifier and TypeMethodDescription(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, 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 Details
-
B2ICostController
B2ICostController()
-
-
Method Details
-
init
void init(TransactionManager xact_manager, B2I conglomerate, Transaction rawtran) throws StandardException - Throws:
StandardException
-