📄 rowcountable.java
字号:
/* Derby - Class org.apache.derby.iapi.store.access.RowCountable 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.iapi.store.access;import org.apache.derby.iapi.error.StandardException; /**RowCountable provides the interfaces to read and write row counts intables.<p>@see ScanController@see StoreCostController**/public interface RowCountable{ /** * Get the total estimated number of rows in the container. * <p> * 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. * <p> * For btree conglomerates this call will return the count of both * user rows and internal implementaation rows. The "BTREE" implementation * generates 1 internal implementation row for each page in the btree, and * it generates 1 internal implementation row for each branch row. For * this reason it is recommended that clients if possible use the count * of rows in the heap table to estimate the number of rows in the index * rather than use the index estimated row count. * * @return The total estimated number of rows in the conglomerate. * * @exception StandardException Standard exception policy. **/ public long getEstimatedRowCount() throws StandardException; /** * Set the total estimated number of rows in the container. * <p> * 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. * <p> * This routine can also be used to set the estimated row count in the * index to the number of rows in the base table, another workaround for * the problem that index estimated row count includes non-user rows. * * @param count the estimated number of rows in the container. * * @return The total estimated number of rows in the conglomerate. * * @exception StandardException Standard exception policy. **/ public void setEstimatedRowCount(long count) throws StandardException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -