RunTimeStatisticsImpl
public interface RunTimeStatistics
RunTimeStatistics is most meaningful for DML statements (SELECT, INSERT, DELETE and UPDATE).
Modifier and Type | Method | Description |
---|---|---|
void |
acceptFromTopResultSet(XPLAINVisitor v) |
Initiate a visit of the ResultSetStatistics tree from the top.
|
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.
|
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 a String representation of the information on the nodes
relating to table and index scans from the execution plan for
the associated query or statement.
|
java.lang.String |
getScanStatisticsText(java.lang.String tableName) |
Get a String representation of the information on the nodes
relating to table and index scans from the execution plan for
the associated query or statement for a particular table.
|
java.lang.String |
getSPSName() |
Get the name of the Stored Prepared Statement used
for the statement.
|
java.lang.String |
getStatementExecutionPlanText() |
Get a String representation of the execution plan
for the associated query or statement.
|
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.
|
long getCompileTimeInMillis()
0 is returned if STATISTICS TIMING is not SET ON.
long getParseTimeInMillis()
0 is returned if STATISTICS TIMING is not SET ON.
long getBindTimeInMillis()
long getOptimizeTimeInMillis()
0 is returned if STATISTICS TIMING is not SET ON.
long getGenerateTimeInMillis()
0 is returned if STATISTICS TIMING is not SET ON.
long getExecuteTimeInMillis()
0 is returned if STATISTICS TIMING is not SET ON.
java.sql.Timestamp getBeginCompilationTimestamp()
A null is returned if STATISTICS TIMING is not SET ON.
java.sql.Timestamp getEndCompilationTimestamp()
A null is returned if STATISTICS TIMING is not SET ON.
java.sql.Timestamp getBeginExecutionTimestamp()
A null is returned if STATISTICS TIMING is not SET ON.
java.sql.Timestamp getEndExecutionTimestamp()
A null is returned if STATISTICS TIMING is not SET ON.
java.lang.String getStatementName()
java.lang.String getSPSName()
Note that the name is returned in the schema.name format (e.g. APP.MYSTMT).
java.lang.String getStatementText()
java.lang.String getStatementExecutionPlanText()
java.lang.String getScanStatisticsText()
java.lang.String getScanStatisticsText(java.lang.String tableName)
tableName
- The table for which user desires statistics.
double getEstimatedRowCount()
void acceptFromTopResultSet(XPLAINVisitor v)
v
- the visitor that wishes to visit the tree.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.