RunTimeStatistics
public final class RunTimeStatisticsImpl extends java.lang.Object implements RunTimeStatistics
Modifier and Type | Field | 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 | 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 | 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<ResultSetStatistics> |
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 RunTimeStatistics
public long getParseTimeInMillis()
getParseTimeInMillis
in interface RunTimeStatistics
public long getBindTimeInMillis()
getBindTimeInMillis
in interface RunTimeStatistics
public long getOptimizeTimeInMillis()
getOptimizeTimeInMillis
in interface RunTimeStatistics
public long getGenerateTimeInMillis()
getGenerateTimeInMillis
in interface RunTimeStatistics
public long getExecuteTimeInMillis()
getExecuteTimeInMillis
in interface RunTimeStatistics
public java.sql.Timestamp getBeginCompilationTimestamp()
getBeginCompilationTimestamp
in interface RunTimeStatistics
public java.sql.Timestamp getEndCompilationTimestamp()
getEndCompilationTimestamp
in interface RunTimeStatistics
public java.sql.Timestamp getBeginExecutionTimestamp()
getBeginExecutionTimestamp
in interface RunTimeStatistics
public java.sql.Timestamp getEndExecutionTimestamp()
getEndExecutionTimestamp
in interface RunTimeStatistics
public java.lang.String getStatementName()
getStatementName
in interface RunTimeStatistics
public java.lang.String getSPSName()
getSPSName
in interface RunTimeStatistics
public java.lang.String getStatementText()
getStatementText
in interface RunTimeStatistics
public double getEstimatedRowCount()
getEstimatedRowCount
in interface RunTimeStatistics
public java.lang.String getStatementExecutionPlanText()
getStatementExecutionPlanText
in interface RunTimeStatistics
public java.lang.String getScanStatisticsText()
getScanStatisticsText
in interface RunTimeStatistics
public java.lang.String getScanStatisticsText(java.lang.String tableName)
getScanStatisticsText
in interface RunTimeStatistics
tableName
- table for which user seeks statistics.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Vector<ResultSetStatistics> getChildren()
The objects returned can be of any type, including addtional Inspectables.
public void acceptFromTopResultSet(XPLAINVisitor v)
acceptFromTopResultSet
in interface RunTimeStatistics
v
- the visitor that wishes to visit the tree.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.