public class RealResultSetStatisticsFactory extends java.lang.Object implements ResultSetStatisticsFactory
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.
MODULE
Constructor and Description |
---|
RealResultSetStatisticsFactory() |
Modifier and Type | Method and 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.
|
public RunTimeStatistics getRunTimeStatistics(Activation activation, ResultSet rs, NoPutResultSet[] subqueryTrackingArray) throws StandardException
ResultSetStatisticsFactory
getRunTimeStatistics
in interface ResultSetStatisticsFactory
activation
- The Activation we are generating the statistics forrs
- The top ResultSet for the ResultSet treesubqueryTrackingArray
- Array of subqueries, used for finding
materialized subqueries.StandardException
- on errorResultSetStatisticsFactory.getRunTimeStatistics(org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.ResultSet, org.apache.derby.iapi.sql.execute.NoPutResultSet[])
public ResultSetStatistics getResultSetStatistics(ResultSet rs)
ResultSetStatisticsFactory
getResultSetStatistics
in interface ResultSetStatisticsFactory
ResultSetStatisticsFactory.getResultSetStatistics(org.apache.derby.iapi.sql.ResultSet)
public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs)
getNoRowsResultSetStatistics
in interface ResultSetStatisticsFactory
public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs)
getResultSetStatistics
in interface ResultSetStatisticsFactory
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.