public final class RunTimeStatisticsImpl extends java.lang.Object implements RunTimeStatistics
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptFromTopResultSet(XPLAINVisitor v)
initiate a visit of an XPLAINVisitor from the top of the RS tree
|
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() |
public java.lang.String statementText
public java.lang.String statementName
public java.lang.String spsName
public long parseTime
public long bindTime
public long optimizeTime
public long generateTime
public long compileTime
public long executeTime
public java.sql.Timestamp beginCompilationTimestamp
public java.sql.Timestamp endCompilationTimestamp
public java.sql.Timestamp beginExecutionTimestamp
public java.sql.Timestamp endExecutionTimestamp
public ResultSetStatistics topResultSetStatistics
public ResultSetStatistics[] subqueryTrackingArray
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)
public long getCompileTimeInMillis()
getCompileTimeInMillis in interface RunTimeStatisticspublic long getParseTimeInMillis()
getParseTimeInMillis in interface RunTimeStatisticspublic long getBindTimeInMillis()
getBindTimeInMillis in interface RunTimeStatisticspublic long getOptimizeTimeInMillis()
getOptimizeTimeInMillis in interface RunTimeStatisticspublic long getGenerateTimeInMillis()
getGenerateTimeInMillis in interface RunTimeStatisticspublic long getExecuteTimeInMillis()
getExecuteTimeInMillis in interface RunTimeStatisticspublic java.sql.Timestamp getBeginCompilationTimestamp()
getBeginCompilationTimestamp in interface RunTimeStatisticspublic java.sql.Timestamp getEndCompilationTimestamp()
getEndCompilationTimestamp in interface RunTimeStatisticspublic java.sql.Timestamp getBeginExecutionTimestamp()
getBeginExecutionTimestamp in interface RunTimeStatisticspublic java.sql.Timestamp getEndExecutionTimestamp()
getEndExecutionTimestamp in interface RunTimeStatisticspublic java.lang.String getStatementName()
getStatementName in interface RunTimeStatisticspublic java.lang.String getSPSName()
getSPSName in interface RunTimeStatisticspublic java.lang.String getStatementText()
getStatementText in interface RunTimeStatisticspublic double getEstimatedRowCount()
getEstimatedRowCount in interface RunTimeStatisticspublic java.lang.String getStatementExecutionPlanText()
getStatementExecutionPlanText in interface RunTimeStatisticspublic java.lang.String getScanStatisticsText()
getScanStatisticsText in interface RunTimeStatisticspublic java.lang.String getScanStatisticsText(java.lang.String tableName)
getScanStatisticsText in interface RunTimeStatisticstableName - table for which user seeks statistics.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Vector getChildren()
The objects returned can be of any type, including addtional Inspectables.
public void acceptFromTopResultSet(XPLAINVisitor v)
acceptFromTopResultSet in interface RunTimeStatisticsv - the visitor that wishes to visit the tree.Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.