Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute.rts
Class RunTimeStatisticsImpl  view RunTimeStatisticsImpl download RunTimeStatisticsImpl.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.rts.RunTimeStatisticsImpl
All Implemented Interfaces:
org.apache.derby.iapi.sql.execute.RunTimeStatistics

public final class RunTimeStatisticsImpl
extends java.lang.Object
implements org.apache.derby.iapi.sql.execute.RunTimeStatistics

RunTimeStatistics implemenation.


Field Summary
 java.sql.Timestamp beginCompilationTimestamp
           
 java.sql.Timestamp beginExecutionTimestamp
           
 long bindTime
           
 long compileTime
           
 java.sql.Timestamp endCompilationTimestamp
           
 java.sql.Timestamp endExecutionTimestamp
           
 long executeTime
           
 long generateTime
           
 long optimizeTime
           
 long parseTime
           
 java.lang.String spsName
           
 java.lang.String statementName
           
 java.lang.String statementText
           
 ResultSetStatistics[] subqueryTrackingArray
           
 ResultSetStatistics topResultSetStatistics
           
 
Constructor Summary
RunTimeStatisticsImpl(java.lang.String spsName, java.lang.String statementName, java.lang.String statementText, long compileTime, long parseTime, long bindTime, long optimizeTime, long generateTime, long executeTime, java.sql.Timestamp beginCompilationTimestamp, java.sql.Timestamp endCompilationTimestamp, java.sql.Timestamp beginExecutionTimestamp, java.sql.Timestamp endExecutionTimestamp, ResultSetStatistics[] subqueryTrackingArray, ResultSetStatistics topResultSetStatistics)
           
 
Method Summary
 java.sql.Timestamp getBeginCompilationTimestamp()
          Get the timestamp for the beginning of query compilation.
 java.sql.Timestamp getBeginExecutionTimestamp()
          Get the timestamp for the beginning of query execution.
 long getBindTimeInMillis()
          Get the bind time for the associated query in milliseconds.
 java.util.Vector getChildren()
          Get the objects to be displayed when this tree object is expanded.
 long getCompileTimeInMillis()
          Get the total compile time for the associated query in milliseconds.
 java.sql.Timestamp getEndCompilationTimestamp()
          Get the timestamp for the end of query compilation.
 java.sql.Timestamp getEndExecutionTimestamp()
          Get the timestamp for the end of query execution.
 double getEstimatedRowCount()
          Get the estimated row count for the number of rows returned by the associated query or statement.
 long getExecuteTimeInMillis()
          Get the execute time for the associated query in milliseconds.
 long getGenerateTimeInMillis()
          Get the generate time for the associated query in milliseconds.
 long getOptimizeTimeInMillis()
          Get the optimize time for the associated query in milliseconds.
 long getParseTimeInMillis()
          Get the parse time for the associated query in milliseconds.
 java.lang.String getScanStatisticsText()
          Get the information on the nodes relating to table and index scans from the execution plan for the associated query or statement as a String.
 java.lang.String getScanStatisticsText(java.lang.String tableName)
          Get the information on the nodes relating to table and index scans for table tableName from the execution plan for the associated query or statement as a String.
 java.lang.String getSPSName()
          Get the name of the Stored Prepared Statement for the statement.
 java.lang.String getStatementExecutionPlanText()
          Get the execution plan for the associated query or statement as a String.
 java.lang.String getStatementName()
          Get the name of the associated query or statement.
 java.lang.String getStatementText()
          Get the text for the associated query or statement.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statementText

public java.lang.String statementText

statementName

public java.lang.String statementName

spsName

public java.lang.String spsName

parseTime

public long parseTime

bindTime

public long bindTime

optimizeTime

public long optimizeTime

generateTime

public long generateTime

compileTime

public long compileTime

executeTime

public long executeTime

beginCompilationTimestamp

public java.sql.Timestamp beginCompilationTimestamp

endCompilationTimestamp

public java.sql.Timestamp endCompilationTimestamp

beginExecutionTimestamp

public java.sql.Timestamp beginExecutionTimestamp

endExecutionTimestamp

public java.sql.Timestamp endExecutionTimestamp

topResultSetStatistics

public ResultSetStatistics topResultSetStatistics

subqueryTrackingArray

public ResultSetStatistics[] subqueryTrackingArray
Constructor Detail

RunTimeStatisticsImpl

public RunTimeStatisticsImpl(java.lang.String spsName,
                             java.lang.String statementName,
                             java.lang.String statementText,
                             long compileTime,
                             long parseTime,
                             long bindTime,
                             long optimizeTime,
                             long generateTime,
                             long executeTime,
                             java.sql.Timestamp beginCompilationTimestamp,
                             java.sql.Timestamp endCompilationTimestamp,
                             java.sql.Timestamp beginExecutionTimestamp,
                             java.sql.Timestamp endExecutionTimestamp,
                             ResultSetStatistics[] subqueryTrackingArray,
                             ResultSetStatistics topResultSetStatistics)
Method Detail

getCompileTimeInMillis

public long getCompileTimeInMillis()
Get the total compile time for the associated query in milliseconds. Compile time can be divided into parse, bind, optimize and generate times.

Specified by:
getCompileTimeInMillis in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getParseTimeInMillis

public long getParseTimeInMillis()
Get the parse time for the associated query in milliseconds.

Specified by:
getParseTimeInMillis in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getBindTimeInMillis

public long getBindTimeInMillis()
Get the bind time for the associated query in milliseconds.

Specified by:
getBindTimeInMillis in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getOptimizeTimeInMillis

public long getOptimizeTimeInMillis()
Get the optimize time for the associated query in milliseconds.

Specified by:
getOptimizeTimeInMillis in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getGenerateTimeInMillis

public long getGenerateTimeInMillis()
Get the generate time for the associated query in milliseconds.

Specified by:
getGenerateTimeInMillis in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getExecuteTimeInMillis

public long getExecuteTimeInMillis()
Get the execute time for the associated query in milliseconds.

Specified by:
getExecuteTimeInMillis in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getBeginCompilationTimestamp

public java.sql.Timestamp getBeginCompilationTimestamp()
Get the timestamp for the beginning of query compilation.

Specified by:
getBeginCompilationTimestamp in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getEndCompilationTimestamp

public java.sql.Timestamp getEndCompilationTimestamp()
Get the timestamp for the end of query compilation.

Specified by:
getEndCompilationTimestamp in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getBeginExecutionTimestamp

public java.sql.Timestamp getBeginExecutionTimestamp()
Get the timestamp for the beginning of query execution.

Specified by:
getBeginExecutionTimestamp in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getEndExecutionTimestamp

public java.sql.Timestamp getEndExecutionTimestamp()
Get the timestamp for the end of query execution.

Specified by:
getEndExecutionTimestamp in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getStatementName

public java.lang.String getStatementName()
Get the name of the associated query or statement. (This will be an internally generated name if the user did not assign a name.)

Specified by:
getStatementName in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getSPSName

public java.lang.String getSPSName()
Get the name of the Stored Prepared Statement for the statement.

Specified by:
getSPSName in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getStatementText

public java.lang.String getStatementText()
Get the text for the associated query or statement.

Specified by:
getStatementText in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getEstimatedRowCount

public double getEstimatedRowCount()
Get the estimated row count for the number of rows returned by the associated query or statement.

Specified by:
getEstimatedRowCount in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getStatementExecutionPlanText

public java.lang.String getStatementExecutionPlanText()
Get the execution plan for the associated query or statement as a String.

Specified by:
getStatementExecutionPlanText in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getScanStatisticsText

public java.lang.String getScanStatisticsText()
Get the information on the nodes relating to table and index scans from the execution plan for the associated query or statement as a String.

Specified by:
getScanStatisticsText in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

getScanStatisticsText

public java.lang.String getScanStatisticsText(java.lang.String tableName)
Get the information on the nodes relating to table and index scans for table tableName from the execution plan for the associated query or statement as a String.

Specified by:
getScanStatisticsText in interface org.apache.derby.iapi.sql.execute.RunTimeStatistics

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


getChildren

public java.util.Vector getChildren()
Get the objects to be displayed when this tree object is expanded.

The objects returned can be of any type, including addtional Inspectables.