A RunTimeStatistics object is a representation of the query execution plan and run
time statistics for a java.sql.ResultSet.
A query execution plan is a tree
of execution nodes. There are a number of possible node types. Statistics
are accumulated during execution at each node. The types of statistics include
the amount of time spent in specific operations (if STATISTICS TIMING is SET ON),
the number of rows passed to the node by its child(ren) and the number of rows
returned by the node to its parent. (The exact statistics are specific to each
node type.)
RunTimeStatistics is most meaningful for DML statements (SELECT, INSERT, DELETE
and UPDATE).
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(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.
Get the estimated row count for the number of rows returned
by the associated query or statement.
The estimated number of rows returned by the associatedquery or statement.
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).
The Stored Prepared Statement name of the associated statement, or null if it is not an EXECUTE STATEMENT 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.
The nodes relating to table and index scansfrom 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 for a particular table.
Parameters: tableName - The table for which user desires statistics.
The nodes relating to table and index scansfrom the execution plan for the associated query or statement.
Get the name of the associated query or statement.
(This will be an internally generated name if the
user did not assign a name.)
The name of the associated query or statement.