Class RunTimeStatisticsImpl
java.lang.Object
org.apache.derby.impl.sql.execute.rts.RunTimeStatisticsImpl
- All Implemented Interfaces:
RunTimeStatistics
RunTimeStatistics implemenation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
long
long
long
long
long
-
Constructor Summary
ConstructorsConstructorDescriptionRunTimeStatisticsImpl
(String spsName, String statementName, String statementText, long compileTime, long parseTime, long bindTime, long optimizeTime, long generateTime, long executeTime, Timestamp beginCompilationTimestamp, Timestamp endCompilationTimestamp, Timestamp beginExecutionTimestamp, Timestamp endExecutionTimestamp, ResultSetStatistics[] subqueryTrackingArray, ResultSetStatistics topResultSetStatistics) -
Method Summary
Modifier and TypeMethodDescriptionvoid
initiate a visit of an XPLAINVisitor from the top of the RS treeGet the timestamp for the beginning of query compilation.Get the timestamp for the beginning of query execution.long
Get the bind time for the associated query in milliseconds.Get the objects to be displayed when this tree object is expanded.long
Get the total compile time for the associated query in milliseconds.Get the timestamp for the end of query compilation.Get the timestamp for the end of query execution.double
Get the estimated row count for the number of rows returned by the associated query or statement.long
Get the execute time for the associated query in milliseconds.long
Get the generate time for the associated query in milliseconds.long
Get the optimize time for the associated query in milliseconds.long
Get the parse time for the associated query in milliseconds.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.getScanStatisticsText
(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.Get the name of the Stored Prepared Statement for the statement.Get the execution plan for the associated query or statement as a String.Get the name of the associated query or statement.Get the text for the associated query or statement.toString()
-
Field Details
-
statementText
-
statementName
-
spsName
-
parseTime
public long parseTime -
bindTime
public long bindTime -
optimizeTime
public long optimizeTime -
generateTime
public long generateTime -
compileTime
public long compileTime -
executeTime
public long executeTime -
beginCompilationTimestamp
-
endCompilationTimestamp
-
beginExecutionTimestamp
-
endExecutionTimestamp
-
topResultSetStatistics
-
subqueryTrackingArray
-
-
Constructor Details
-
RunTimeStatisticsImpl
public RunTimeStatisticsImpl(String spsName, String statementName, String statementText, long compileTime, long parseTime, long bindTime, long optimizeTime, long generateTime, long executeTime, Timestamp beginCompilationTimestamp, Timestamp endCompilationTimestamp, Timestamp beginExecutionTimestamp, Timestamp endExecutionTimestamp, ResultSetStatistics[] subqueryTrackingArray, ResultSetStatistics topResultSetStatistics)
-
-
Method Details
-
getCompileTimeInMillis
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.- Specified by:
getCompileTimeInMillis
in interfaceRunTimeStatistics
- Returns:
- long The total compile time for the associated query in milliseconds.
-
getParseTimeInMillis
public long getParseTimeInMillis()Get the parse time for the associated query in milliseconds.- Specified by:
getParseTimeInMillis
in interfaceRunTimeStatistics
- Returns:
- long The parse time for the associated query in milliseconds.
-
getBindTimeInMillis
public long getBindTimeInMillis()Get the bind time for the associated query in milliseconds.- Specified by:
getBindTimeInMillis
in interfaceRunTimeStatistics
- Returns:
- long The bind time for the associated query in milliseconds.
-
getOptimizeTimeInMillis
public long getOptimizeTimeInMillis()Get the optimize time for the associated query in milliseconds.- Specified by:
getOptimizeTimeInMillis
in interfaceRunTimeStatistics
- Returns:
- long The optimize time for the associated query in milliseconds.
-
getGenerateTimeInMillis
public long getGenerateTimeInMillis()Get the generate time for the associated query in milliseconds.- Specified by:
getGenerateTimeInMillis
in interfaceRunTimeStatistics
- Returns:
- long The generate time for the associated query in milliseconds.
-
getExecuteTimeInMillis
public long getExecuteTimeInMillis()Get the execute time for the associated query in milliseconds.- Specified by:
getExecuteTimeInMillis
in interfaceRunTimeStatistics
- Returns:
- long The execute time for the associated query in milliseconds.
-
getBeginCompilationTimestamp
Get the timestamp for the beginning of query compilation.- Specified by:
getBeginCompilationTimestamp
in interfaceRunTimeStatistics
- Returns:
- java.sql.Timestamp The timestamp for the beginning of query compilation.
-
getEndCompilationTimestamp
Get the timestamp for the end of query compilation.- Specified by:
getEndCompilationTimestamp
in interfaceRunTimeStatistics
- Returns:
- java.sql.Timestamp The timestamp for the end of query compilation.
-
getBeginExecutionTimestamp
Get the timestamp for the beginning of query execution.- Specified by:
getBeginExecutionTimestamp
in interfaceRunTimeStatistics
- Returns:
- java.sql.Timestamp The timestamp for the beginning of query execution.
-
getEndExecutionTimestamp
Get the timestamp for the end of query execution.- Specified by:
getEndExecutionTimestamp
in interfaceRunTimeStatistics
- Returns:
- java.sql.Timestamp The timestamp for the end of query execution.
-
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.)- Specified by:
getStatementName
in interfaceRunTimeStatistics
- Returns:
- java.lang.String The name of the associated query or statement.
-
getSPSName
Get the name of the Stored Prepared Statement for the statement.- Specified by:
getSPSName
in interfaceRunTimeStatistics
- Returns:
- java.lang.String The SPS name of the associated query or statement.
-
getStatementText
Get the text for the associated query or statement.- Specified by:
getStatementText
in interfaceRunTimeStatistics
- Returns:
- java.lang.String The text for the associated query or statement.
-
getEstimatedRowCount
public double getEstimatedRowCount()Get the estimated row count for the number of rows returned by the associated query or statement.- Specified by:
getEstimatedRowCount
in interfaceRunTimeStatistics
- Returns:
- The estimated number of rows returned by the associated query or statement.
-
getStatementExecutionPlanText
Get the execution plan for the associated query or statement as a String.- Specified by:
getStatementExecutionPlanText
in interfaceRunTimeStatistics
- Returns:
- java.lang.String The execution plan for the associated query or statement.
-
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.- Specified by:
getScanStatisticsText
in interfaceRunTimeStatistics
- Returns:
- java.lang.String The nodes relating to table and index scans from the execution plan for the associated query or statement.
-
getScanStatisticsText
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.- Specified by:
getScanStatisticsText
in interfaceRunTimeStatistics
- Parameters:
tableName
- table for which user seeks statistics.- Returns:
- java.lang.String The nodes relating to table and index scans from the execution plan for the associated query or statement for tableName.
-
toString
-
getChildren
Get the objects to be displayed when this tree object is expanded.The objects returned can be of any type, including addtional Inspectables.
- Returns:
- java.util.Vector A vector of objects.
-
acceptFromTopResultSet
initiate a visit of an XPLAINVisitor from the top of the RS tree- Specified by:
acceptFromTopResultSet
in interfaceRunTimeStatistics
- Parameters:
v
- the visitor that wishes to visit the tree.
-