org.apache.derby.impl.sql.execute
Class RealResultSetStatisticsFactory

java.lang.Object
  extended byorg.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.

Author:
jerry

Field Summary
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory
MODULE
 
Constructor Summary
RealResultSetStatisticsFactory()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealResultSetStatisticsFactory

public RealResultSetStatisticsFactory()
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 interface ResultSetStatisticsFactory
Parameters:
activation - The Activation we are generating the statistics for
rs - The top ResultSet for the ResultSet tree
subqueryTrackingArray - 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 interface ResultSetStatisticsFactory
See Also:
ResultSetStatisticsFactory.getResultSetStatistics(org.apache.derby.iapi.sql.ResultSet)

getNoRowsResultSetStatistics

public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs)
Specified by:
getNoRowsResultSetStatistics in interface ResultSetStatisticsFactory

getResultSetStatistics

public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs)
Specified by:
getResultSetStatistics in interface ResultSetStatisticsFactory

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.