Top Fields Constructors Methods
org.apache.derby.impl.store.access.conglomerate

pack-priv abstract Class GenericController

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.store.access.conglomerate.GenericCostController, org.apache.derby.impl.store.access.conglomerate.GenericScanController, org.apache.derby.impl.store.access.conglomerate.GenericConglomerateController
Imports
org.apache.derby.shared.common.reference.SQLState, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.store.access.SpaceInfo, org.apache.derby.iapi.store.raw.ContainerHandle, org.apache.derby.iapi.types.RowLocation, java.util.Properties

Field Summary

Modifier and TypeField and Description
protected OpenConglomerate
open_conglom

Fields of the class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
checkConsistency()

Public Methods implementing ConglomerateController which just delegate to OpenConglomerate:

public void
public void
public long

Returns:

The total estimated number of rows in the conglomerate.
getEstimatedRowCount
()

Get the total estimated number of rows in the container.

public Properties
public OpenConglomerate
protected void
getRowPositionFromRowLocation(RowLocation row_loc, RowPosition pos)

Private/Protected methods of This class:

public SpaceInfo
public void
public void
init(OpenConglomerate open_conglom)

Public Methods of This class:

public boolean
public boolean
isTableLocked()

is the open btree table locked?

public RowLocation
protected void
public void
setEstimatedRowCount(long
the estimated number of rows in the container.
count
)

Set the total estimated number of rows in the container.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

open_conglomback to summary
protected OpenConglomerate open_conglom

Fields of the class

Constructor Detail

GenericControllerback to summary
pack-priv GenericController()

Method Detail

checkConsistencyback to summary
public void checkConsistency() throws StandardException

Public Methods implementing ConglomerateController which just delegate to OpenConglomerate:

closeback to summary
public void close() throws StandardException
debugConglomerateback to summary
public void debugConglomerate() throws StandardException
getEstimatedRowCountback to summary
public long getEstimatedRowCount() throws 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.

Returns:long

The total estimated number of rows in the conglomerate.

Exceptions
StandardException:
Standard exception policy.
getInternalTablePropertySetback to summary
public Properties getInternalTablePropertySet(Properties prop) throws StandardException
getOpenConglomback to summary
public OpenConglomerate getOpenConglom()
getRowPositionFromRowLocationback to summary
protected void getRowPositionFromRowLocation(RowLocation row_loc, RowPosition pos) throws StandardException

Private/Protected methods of This class:

getSpaceInfoback to summary
public SpaceInfo getSpaceInfo() throws StandardException
getTablePropertiesback to summary
public void getTableProperties(Properties prop) throws StandardException
initback to summary
public void init(OpenConglomerate open_conglom) throws StandardException

Public Methods of This class:

isKeyedback to summary
public boolean isKeyed()
isTableLockedback to summary
public boolean isTableLocked()

is the open btree table locked?

newRowLocationTemplateback to summary
public RowLocation newRowLocationTemplate() throws StandardException
queueDeletePostCommitWorkback to summary
protected void queueDeletePostCommitWork(RowPosition pos) throws StandardException
setEstimatedRowCountback to summary
public void setEstimatedRowCount(long count) throws 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.

Parameters
count:long

the estimated number of rows in the container.

Exceptions
StandardException:
Standard exception policy.