Class RealResultSetStatisticsFactory
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.RealResultSetStatisticsFactory
-
- All Implemented Interfaces:
ResultSetStatisticsFactory
public class RealResultSetStatisticsFactory extends java.lang.Object implements ResultSetStatisticsFactory
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.
-
-
Field Summary
-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory
MODULE
-
-
Constructor Summary
Constructors Constructor Description RealResultSetStatisticsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetStatisticsgetNoRowsResultSetStatistics(ResultSet rs)ResultSetStatisticsgetResultSetStatistics(NoPutResultSet rs)ResultSetStatisticsgetResultSetStatistics(ResultSet rs)Get the matching ResultSetStatistics for the specified ResultSet.RunTimeStatisticsgetRunTimeStatistics(Activation activation, ResultSet rs, NoPutResultSet[] subqueryTrackingArray)RunTimeStatistics creation.
-
-
-
Method Detail
-
getRunTimeStatistics
public RunTimeStatistics getRunTimeStatistics(Activation activation, ResultSet rs, NoPutResultSet[] subqueryTrackingArray) throws StandardException
Description copied from interface:ResultSetStatisticsFactoryRunTimeStatistics creation.- Specified by:
getRunTimeStatisticsin interfaceResultSetStatisticsFactory- Parameters:
activation- The Activation we are generating the statistics forrs- The top ResultSet for the ResultSet treesubqueryTrackingArray- Array of subqueries, used for finding materialized subqueries.- Throws:
StandardException- on error- See Also:
ResultSetStatisticsFactory.getRunTimeStatistics(org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.ResultSet, org.apache.derby.iapi.sql.execute.NoPutResultSet[])
-
getResultSetStatistics
public ResultSetStatistics getResultSetStatistics(ResultSet rs)
Description copied from interface:ResultSetStatisticsFactoryGet the matching ResultSetStatistics for the specified ResultSet.- Specified by:
getResultSetStatisticsin interfaceResultSetStatisticsFactory- See Also:
ResultSetStatisticsFactory.getResultSetStatistics(org.apache.derby.iapi.sql.ResultSet)
-
getNoRowsResultSetStatistics
public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs)
- Specified by:
getNoRowsResultSetStatisticsin interfaceResultSetStatisticsFactory
-
getResultSetStatistics
public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs)
- Specified by:
getResultSetStatisticsin interfaceResultSetStatisticsFactory
-
-