Top Description Constructors Methods
org.apache.derby.impl.sql.execute

public Class RealResultSetStatisticsFactory

extends Object
implements ResultSetStatisticsFactory
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.services.io.FormatIdUtil, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.iapi.sql.Activation, .ResultSet, .PreparedStatement, org.apache.derby.iapi.sql.execute.NoPutResultSet, .ResultSetFactory, .ResultSetStatisticsFactory, .RunTimeStatistics, .ResultSetStatistics, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.impl.sql.execute.AnyResultSet, .CurrentOfResultSet, .DeleteResultSet, .DeleteCascadeResultSet, .DeleteVTIResultSet, .DistinctScalarAggregateResultSet, .DistinctScanResultSet, .GroupedAggregateResultSet, .HashJoinResultSet, .HashLeftOuterJoinResultSet, .HashScanResultSet, .HashTableResultSet, .IndexRowToBaseRowResultSet, .InsertResultSet, .InsertVTIResultSet, .LastIndexKeyResultSet, .MaterializedResultSet, .NestedLoopJoinResultSet, .NestedLoopLeftOuterJoinResultSet, .NormalizeResultSet, .OnceResultSet, .ProjectRestrictResultSet, .RowResultSet, .ScalarAggregateResultSet, .ScrollInsensitiveResultSet, .SetOpResultSet, .SortResultSet, .TableScanResultSet, .UnionResultSet, .UpdateResultSet, .VTIResultSet, .DependentResultSet, .WindowResultSet, org.apache.derby.impl.sql.execute.rts.RealAnyResultSetStatistics, .RealCurrentOfStatistics, .RealDeleteResultSetStatistics, .RealDeleteCascadeResultSetStatistics, .RealDeleteVTIResultSetStatistics, .RealDistinctScalarAggregateStatistics, .RealDistinctScanStatistics, .RealGroupedAggregateStatistics, .RealHashJoinStatistics, .RealHashLeftOuterJoinStatistics, .RealHashScanStatistics, .RealHashTableStatistics, .RealIndexRowToBaseRowStatistics, .RealInsertResultSetStatistics, .RealInsertVTIResultSetStatistics, .RealJoinResultSetStatistics, .RealLastIndexKeyScanStatistics, .RealMaterializedResultSetStatistics, .RealNestedLoopJoinStatistics, .RealNestedLoopLeftOuterJoinStatistics, .RealNormalizeResultSetStatistics, .RealOnceResultSetStatistics, .RealProjectRestrictStatistics, .RealRowResultSetStatistics, .RealScalarAggregateStatistics, .RealScrollInsensitiveResultSetStatistics, .RealSetOpResultSetStatistics, .RealSortStatistics, .RealTableScanStatistics, .RealUnionResultSetStatistics, .RealUpdateResultSetStatistics, .RealVTIStatistics, .RealRowCountStatistics, .RunTimeStatisticsImpl, .RealWindowResultSetStatistics, org.apache.derby.shared.common.reference.SQLState, java.util.Properties

ResultSetStatisticsFactory provides a wrapper around all of objects associated with run time statistics.

This implementation of the protocol is for returning the "real" run time statistics. We have modularized this so that we could have an implementation that just returns null for each of the objects should we decided to provide a configuration without the run time statistics feature.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ResultSetStatistics
public ResultSetStatistics
getResultSetStatistics(ResultSet rs)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getResultSetStatistics.

Get the matching ResultSetStatistics for the specified ResultSet.

public ResultSetStatistics
public RunTimeStatistics
getRunTimeStatistics(Activation
The Activation we are generating the statistics for
activation
,
ResultSet
The top ResultSet for the ResultSet tree
rs
,
NoPutResultSet[]
Array of subqueries, used for finding materialized subqueries.
subqueryTrackingArray
)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getRunTimeStatistics.

RunTimeStatistics creation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RealResultSetStatisticsFactoryback to summary
public RealResultSetStatisticsFactory()

Method Detail

getNoRowsResultSetStatisticsback to summary
public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getNoRowsResultSetStatistics.

getResultSetStatisticsback to summary
public ResultSetStatistics getResultSetStatistics(ResultSet rs)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getResultSetStatistics.

Doc from org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getResultSetStatistics.

Get the matching ResultSetStatistics for the specified ResultSet.

See Also
ResultSetStatisticsFactory#getResultSetStatistics
getResultSetStatisticsback to summary
public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getResultSetStatistics.

getRunTimeStatisticsback to summary
public RunTimeStatistics getRunTimeStatistics(Activation activation, ResultSet rs, NoPutResultSet[] subqueryTrackingArray) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getRunTimeStatistics.

Doc from org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory.getRunTimeStatistics.

RunTimeStatistics creation.

Parameters
activation:Activation

The Activation we are generating the statistics for

rs:ResultSet

The top ResultSet for the ResultSet tree

subqueryTrackingArray:NoPutResultSet[]

Array of subqueries, used for finding materialized subqueries.

Exceptions
StandardException:
on error
See Also
ResultSetStatisticsFactory#getRunTimeStatistics