GenericConglomerateController
, GenericCostController
, GenericScanController
abstract class GenericController
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected OpenConglomerate |
open_conglom |
Fields of the class
|
Constructor | Description |
---|---|
GenericController() |
Modifier and Type | Method | Description |
---|---|---|
void |
checkConsistency() |
Public Methods implementing ConglomerateController which just
delegate to OpenConglomerate:
|
void |
close() |
|
void |
debugConglomerate() |
|
long |
getEstimatedRowCount() |
Get the total estimated number of rows in the container.
|
java.util.Properties |
getInternalTablePropertySet(java.util.Properties prop) |
|
OpenConglomerate |
getOpenConglom() |
|
protected void |
getRowPositionFromRowLocation(RowLocation row_loc,
RowPosition pos) |
Private/Protected methods of This class:
|
SpaceInfo |
getSpaceInfo() |
|
void |
getTableProperties(java.util.Properties prop) |
|
void |
init(OpenConglomerate open_conglom) |
Public Methods of This class:
|
boolean |
isKeyed() |
|
boolean |
isTableLocked() |
is the open btree table locked?
|
RowLocation |
newRowLocationTemplate() |
|
protected void |
queueDeletePostCommitWork(RowPosition pos) |
|
void |
setEstimatedRowCount(long count) |
Set the total estimated number of rows in the container.
|
protected OpenConglomerate open_conglom
protected void getRowPositionFromRowLocation(RowLocation row_loc, RowPosition pos) throws StandardException
StandardException
protected void queueDeletePostCommitWork(RowPosition pos) throws StandardException
StandardException
public void init(OpenConglomerate open_conglom) throws StandardException
StandardException
public OpenConglomerate getOpenConglom()
public void checkConsistency() throws StandardException
StandardException
public void debugConglomerate() throws StandardException
StandardException
public void getTableProperties(java.util.Properties prop) throws StandardException
StandardException
public java.util.Properties getInternalTablePropertySet(java.util.Properties prop) throws StandardException
StandardException
public SpaceInfo getSpaceInfo() throws StandardException
StandardException
public void close() throws StandardException
StandardException
public boolean isKeyed()
public RowLocation newRowLocationTemplate() throws StandardException
StandardException
public boolean isTableLocked()
public long getEstimatedRowCount() throws StandardException
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.
StandardException
- Standard exception policy.public void setEstimatedRowCount(long count) throws StandardException
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.
count
- the estimated number of rows in the container.StandardException
- Standard exception policy.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.