📄 b2icostcontroller.java
字号:
/* Derby - Class org.apache.derby.impl.store.access.btree.index.B2ICostController Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */package org.apache.derby.impl.store.access.btree.index;import java.io.IOException;import java.util.Properties;import org.apache.derby.iapi.services.sanity.SanityManager;import org.apache.derby.iapi.error.StandardException;import org.apache.derby.iapi.store.access.conglomerate.Conglomerate;import org.apache.derby.iapi.store.access.conglomerate.TransactionManager;import org.apache.derby.iapi.store.access.ConglomerateController;import org.apache.derby.iapi.store.access.Qualifier;import org.apache.derby.iapi.types.RowLocation;import org.apache.derby.iapi.store.access.ScanController;import org.apache.derby.iapi.store.raw.Transaction;import org.apache.derby.impl.store.access.btree.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. */public class B2ICostController extends BTreeCostController{ /* ** Fields of B2IController. */ /* ** Methods of B2IController. */ B2ICostController() { // Perform the generic b-tree construction. super(); } void init( TransactionManager xact_manager, B2I conglomerate, Transaction rawtran) throws StandardException { // Do generic b-tree initialization. super.init(xact_manager, conglomerate, rawtran); if (SanityManager.DEBUG) SanityManager.ASSERT(conglomerate != null); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -