Top Description Fields Constructors Methods
org.apache.derby.impl.sql.catalog

public Class SYSSTATISTICSRowFactory

extends CatalogRowFactory
Class Inheritance
Imports
org.apache.derby.iapi.sql.dictionary.SystemColumn, .TupleDescriptor, .StatisticsDescriptor, .DataDictionary, .DataDescriptorGenerator, .CatalogRowFactory, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ExecRow, .ExecIndexRow, .ExecutionFactory, org.apache.derby.iapi.types.TypeId, .UserType, .DataValueFactory, .RowLocation, .DataValueDescriptor, org.apache.derby.iapi.types.*, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.catalog.UUID, .Statistics, java.sql.Timestamp, .Types

Factory for creating a SYSSTATISTICS row.
Version
0.1

Field Summary

Modifier and TypeField and Description
private static final int[][]
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
pack-priv static final String
private static final boolean[]
private static final String[]
Inherited from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory:
dvfheapUUIDindexNamesindexUniquenessindexUUIDtableUUID

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public SystemColumn[]

Returns:

array of SystemColumn suitable for making this catalog.
buildColumnList
()

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildColumnList.

Builds a list of columns suitable for creating this Catalog.

public TupleDescriptor
buildDescriptor(ExecRow row, TupleDescriptor parentDesc, DataDictionary dd)

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

builds a tuple descriptor from a row

public ExecRow

Returns:

Row suitable for inserting into SYSSTATISTICS.
makeRow
(TupleDescriptor td, TupleDescriptor parent)

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

Make a SYSSTATISTICS row

Inherited from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory:
generateIndexNamegetCanonicalHeapNamegetCanonicalHeapUUIDgetCanonicalIndexUUIDgetCanonicalTableUUIDgetCatalogNamegetCreateHeapPropertiesgetCreateIndexPropertiesgetDataValueFactorygetExecutionFactorygetHeapColumnCountgetIndexColumnCountgetIndexColumnPositionsgetIndexNamegetNumIndexesgetPrimaryKeyIndexNumbergetUUIDFactoryinitInfoisIndexUniquemakeEmptyRowmakeEmptyRowForCurrentVersion

Field Detail

indexColumnPositionsback to summary
private static final int[][] indexColumnPositions

Hides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.indexColumnPositions.

SYSSTATISTICS_COLCOUNTback to summary
protected static final int SYSSTATISTICS_COLCOUNT
SYSSTATISTICS_COLUMN_COUNTback to summary
protected static final int SYSSTATISTICS_COLUMN_COUNT
SYSSTATISTICS_IDback to summary
protected static final int SYSSTATISTICS_ID
SYSSTATISTICS_INDEX1_IDback to summary
protected static final int SYSSTATISTICS_INDEX1_ID
SYSSTATISTICS_REFERENCEIDback to summary
protected static final int SYSSTATISTICS_REFERENCEID
SYSSTATISTICS_STATback to summary
protected static final int SYSSTATISTICS_STAT
SYSSTATISTICS_TABLEIDback to summary
protected static final int SYSSTATISTICS_TABLEID
SYSSTATISTICS_TIMESTAMPback to summary
protected static final int SYSSTATISTICS_TIMESTAMP
SYSSTATISTICS_TYPEback to summary
protected static final int SYSSTATISTICS_TYPE
SYSSTATISTICS_VALIDback to summary
protected static final int SYSSTATISTICS_VALID
TABLENAME_STRINGback to summary
pack-priv static final String TABLENAME_STRING
uniquenessback to summary
private static final boolean[] uniqueness
uuidsback to summary
private static final String[] uuids

Constructor Detail

SYSSTATISTICSRowFactoryback to summary
pack-priv SYSSTATISTICSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)

Method Detail

buildColumnListback to summary
public SystemColumn[] buildColumnList() throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildColumnList.

Builds a list of columns suitable for creating this Catalog.

Returns:SystemColumn[]

array of SystemColumn suitable for making this catalog.

buildDescriptorback to summary
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentDesc, DataDictionary dd) throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

Doc from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

builds a tuple descriptor from a row

makeRowback to summary
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

Make a SYSSTATISTICS row

Returns:ExecRow

Row suitable for inserting into SYSSTATISTICS.

Exceptions
StandardException:
thrown on failure