RunTimeStatistics is most meaningful for DML statements (SELECT, INSERT, DELETE and UPDATE).
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptFromTopResultSet(XPLAINVisitor
the visitor that wishes to visit the tree. v)Initiate a visit of the ResultSetStatistics tree from the top. |
| public Timestamp | Returns: The timestamp for the beginning of query compilation.Get the timestamp for the beginning of query compilation. |
| public Timestamp | Returns: The timestamp for the beginning of query execution.Get the timestamp for the beginning of query execution. |
| public long | Returns: The bind time for the associated query in milliseconds.Get the bind time for the associated query in milliseconds. |
| public long | Returns: The total compile time for the associated query in milliseconds.Get the total compile time for the associated query in milliseconds. |
| public Timestamp | Returns: The timestamp for the end of query compilation.Get the timestamp for the end of query compilation. |
| public Timestamp | Returns: The timestamp for the end of query execution.Get the timestamp for the end of query execution. |
| public double | Returns: The estimated number of rows returned by the associated query or statement.Get the estimated row count for the number of rows returned by the associated query or statement. |
| public long | Returns: The execute time for the associated query in milliseconds.Get the execute time for the associated query in milliseconds. |
| public long | Returns: The generate time for the associated query in milliseconds.Get the generate time for the associated query in milliseconds. |
| public long | Returns: The optimize time for the associated query in milliseconds.Get the optimize time for the associated query in milliseconds. |
| public long | Returns: The parse time for the associated query in milliseconds.Get the parse time for the associated query in milliseconds. |
| public String | Returns: The nodes relating to table and index scans from the execution plan for the associated query or statement.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. |
| public String | Returns: The nodes relating to table and index scans from the execution plan for the associated query or statement.The table for which user desires statistics.
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. |
| public String | Returns: The Stored Prepared Statement name of the associated statement, or null if it is not an EXECUTE STATEMENT statement.Get the name of the Stored Prepared Statement used for the statement. |
| public String | Returns: The execution plan for the associated query or statement.Get a String representation of the execution plan for the associated query or statement. |
| public String | Returns: The name of the associated query or statement.Get the name of the associated query or statement. |
| public String | Returns: The text for the associated query or statement.Get the text for the associated query or statement. |
| acceptFromTopResultSet | back to summary |
|---|---|
| public void acceptFromTopResultSet(XPLAINVisitor v) Initiate a visit of the ResultSetStatistics tree from the top.
| |
| getBeginCompilationTimestamp | back to summary |
|---|---|
| public Timestamp getBeginCompilationTimestamp() Get the timestamp for the beginning of query compilation. A null is returned if STATISTICS TIMING is not SET ON.
| |
| getBeginExecutionTimestamp | back to summary |
|---|---|
| public Timestamp getBeginExecutionTimestamp() Get the timestamp for the beginning of query execution. A null is returned if STATISTICS TIMING is not SET ON.
| |
| getBindTimeInMillis | back to summary |
|---|---|
| public long getBindTimeInMillis() Get the bind time for the associated query in milliseconds.
| |
| getCompileTimeInMillis | back to summary |
|---|---|
| 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. 0 is returned if STATISTICS TIMING is not SET ON.
| |
| getEndCompilationTimestamp | back to summary |
|---|---|
| public Timestamp getEndCompilationTimestamp() Get the timestamp for the end of query compilation. A null is returned if STATISTICS TIMING is not SET ON.
| |
| getEndExecutionTimestamp | back to summary |
|---|---|
| public Timestamp getEndExecutionTimestamp() Get the timestamp for the end of query execution. A null is returned if STATISTICS TIMING is not SET ON.
| |
| getEstimatedRowCount | back to summary |
|---|---|
| public double getEstimatedRowCount() Get the estimated row count for the number of rows returned by the associated query or statement.
| |
| getExecuteTimeInMillis | back to summary |
|---|---|
| public long getExecuteTimeInMillis() Get the execute time for the associated query in milliseconds. 0 is returned if STATISTICS TIMING is not SET ON.
| |
| getGenerateTimeInMillis | back to summary |
|---|---|
| public long getGenerateTimeInMillis() Get the generate time for the associated query in milliseconds. 0 is returned if STATISTICS TIMING is not SET ON.
| |
| getOptimizeTimeInMillis | back to summary |
|---|---|
| public long getOptimizeTimeInMillis() Get the optimize time for the associated query in milliseconds. 0 is returned if STATISTICS TIMING is not SET ON.
| |
| getParseTimeInMillis | back to summary |
|---|---|
| public long getParseTimeInMillis() Get the parse time for the associated query in milliseconds. 0 is returned if STATISTICS TIMING is not SET ON.
| |
| getScanStatisticsText | back to summary |
|---|---|
| public 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.
| |
| getScanStatisticsText | back to summary |
|---|---|
| public String getScanStatisticsText(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.
| |
| getSPSName | back to summary |
|---|---|
| public String getSPSName() Get the name of the Stored Prepared Statement used for the statement. This method returns a value only for EXECUTE STATEMENT statements; otherwise, returns null. Note that the name is returned in the schema.name format (e.g. APP.MYSTMT).
| |
| getStatementExecutionPlanText | back to summary |
|---|---|
| public String getStatementExecutionPlanText() Get a String representation of the execution plan for the associated query or statement.
| |
| getStatementName | back to summary |
|---|---|
| public 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.)
| |
| getStatementText | back to summary |
|---|---|
| public String getStatementText() Get the text for the associated query or statement.
| |