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 ResultSetStatistics
getNoRowsResultSetStatistics(ResultSet rs)
ResultSetStatistics
getResultSetStatistics(NoPutResultSet rs)
ResultSetStatistics
getResultSetStatistics(ResultSet rs)
Get the matching ResultSetStatistics for the specified ResultSet.RunTimeStatistics
getRunTimeStatistics(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:ResultSetStatisticsFactory
RunTimeStatistics creation.- Specified by:
getRunTimeStatistics
in 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:ResultSetStatisticsFactory
Get the matching ResultSetStatistics for the specified ResultSet.- Specified by:
getResultSetStatistics
in interfaceResultSetStatisticsFactory
- See Also:
ResultSetStatisticsFactory.getResultSetStatistics(org.apache.derby.iapi.sql.ResultSet)
-
getNoRowsResultSetStatistics
public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs)
- Specified by:
getNoRowsResultSetStatistics
in interfaceResultSetStatisticsFactory
-
getResultSetStatistics
public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs)
- Specified by:
getResultSetStatistics
in interfaceResultSetStatisticsFactory
-
-