org.apache.derby.impl.sql.execute.rts
Class RealScalarAggregateStatistics

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics
      extended byorg.apache.derby.impl.sql.execute.rts.RealNoPutResultSetStatistics
          extended byorg.apache.derby.impl.sql.execute.rts.RealScalarAggregateStatistics
All Implemented Interfaces:
ResultSetStatistics
Direct Known Subclasses:
RealDistinctScalarAggregateStatistics

public class RealScalarAggregateStatistics
extends RealNoPutResultSetStatistics

ResultSetStatistics implemenation for ScalarAggregateResultSet.

Author:
jerry

Field Summary
 ResultSetStatistics childResultSetStatistics
           
 long closeTime
           
 long constructorTime
           
protected  java.lang.String indent
           
 boolean indexKeyOptimization
           
 java.lang.String inspectDesc
           
 long inspectNum
           
 long inspectOverall
           
 long nextTime
           
 int numOpens
           
 long openTime
           
 double optimizerEstimatedCost
           
 double optimizerEstimatedRowCount
           
 int resultSetNumber
           
 int rowsFiltered
           
 int rowsInput
           
 int rowsSeen
           
protected  int sourceDepth
           
protected  java.lang.String subIndent
           
 
Constructor Summary
RealScalarAggregateStatistics(int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, boolean indexKeyOptimization, int rowsInput, double optimizerEstimatedRowCount, double optimizerEstimatedCost, ResultSetStatistics childResultSetStatistics)
           
 
Method Summary
protected  java.lang.String dumpEstimatedCosts(java.lang.String subIndent)
          Dump out the estimated cost information
protected  java.lang.String dumpTimeStats(java.lang.String indent, java.lang.String subIndent)
          Dump out the time information for run time stats.
 java.util.Vector getChildren()
          Get the objects to be displayed when this tree object is expanded.
 long getChildrenTime()
          Return the time for all operations performed by the children of this node.
 double getEstimatedRowCount()
          Get the estimated row count for the number of rows returned by the associated query or statement.
 java.lang.String getNodeName()
          Format for display, a name for this node.
 java.lang.String getNodeOn()
          If this node is on a database item (like a table or an index), then provide a string that describes the on item.
 long getNodeTime()
          Return the time for all operations performed by this node, but not the time for the children of this node.
 java.lang.String getScanStatisticsText(java.lang.String tableName, int depth)
          Return information on the scan nodes from the statement execution plan as a String.
 java.lang.String getStatementExecutionPlanText(int depth)
          Return the statement execution plan as a String.
 long getTotalTime()
          Return the time for all operations performed by this node, and the children of this node.
protected  void initFormatInfo(int depth)
          Initialize the format info for run time statistics.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rowsInput

public int rowsInput

indexKeyOptimization

public boolean indexKeyOptimization

childResultSetStatistics

public ResultSetStatistics childResultSetStatistics

resultSetNumber

public int resultSetNumber

indent

protected java.lang.String indent

subIndent

protected java.lang.String subIndent

sourceDepth

protected int sourceDepth

numOpens

public int numOpens

rowsSeen

public int rowsSeen

rowsFiltered

public int rowsFiltered

constructorTime

public long constructorTime

openTime

public long openTime

nextTime

public long nextTime

closeTime

public long closeTime

inspectOverall

public long inspectOverall

inspectNum

public long inspectNum

inspectDesc

public java.lang.String inspectDesc

optimizerEstimatedRowCount

public double optimizerEstimatedRowCount

optimizerEstimatedCost

public double optimizerEstimatedCost
Constructor Detail

RealScalarAggregateStatistics

public RealScalarAggregateStatistics(int numOpens,
                                     int rowsSeen,
                                     int rowsFiltered,
                                     long constructorTime,
                                     long openTime,
                                     long nextTime,
                                     long closeTime,
                                     int resultSetNumber,
                                     boolean indexKeyOptimization,
                                     int rowsInput,
                                     double optimizerEstimatedRowCount,
                                     double optimizerEstimatedCost,
                                     ResultSetStatistics childResultSetStatistics)
Method Detail

getStatementExecutionPlanText

public java.lang.String getStatementExecutionPlanText(int depth)
Return the statement execution plan as a String.

Parameters:
depth - Indentation level.
Returns:
String The statement execution plan as a String.

getScanStatisticsText

public java.lang.String getScanStatisticsText(java.lang.String tableName,
                                              int depth)
Return information on the scan nodes from the statement execution plan as a String.

Parameters:
depth - Indentation level.
tableName - if not NULL then print information for this table only
Returns:
String The information on the scan nodes from the statement execution plan as a String.

toString

public java.lang.String toString()

getChildren

public java.util.Vector getChildren()
Description copied from class: RealBasicNoPutResultSetStatistics
Get the objects to be displayed when this tree object is expanded.

The objects returned can be of any type, including addtional Inspectables.

Overrides:
getChildren in class RealBasicNoPutResultSetStatistics
Returns:
java.util.Vector A vector of objects.

getNodeName

public java.lang.String getNodeName()
Format for display, a name for this node.

Specified by:
getNodeName in class RealBasicNoPutResultSetStatistics

initFormatInfo

protected void initFormatInfo(int depth)
Initialize the format info for run time statistics.


dumpTimeStats

protected final java.lang.String dumpTimeStats(java.lang.String indent,
                                               java.lang.String subIndent)
Dump out the time information for run time stats.

Returns:
Nothing.

dumpEstimatedCosts

protected final java.lang.String dumpEstimatedCosts(java.lang.String subIndent)
Dump out the estimated cost information

Returns:
Nothing.

getTotalTime

public long getTotalTime()
Return the time for all operations performed by this node, and the children of this node. The times included open, next, and close.


getChildrenTime

public long getChildrenTime()
Return the time for all operations performed by the children of this node.


getNodeTime

public long getNodeTime()
Return the time for all operations performed by this node, but not the time for the children of this node.


getNodeOn

public java.lang.String getNodeOn()
If this node is on a database item (like a table or an index), then provide a string that describes the on item.


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 interface ResultSetStatistics
Returns:
The estimated number of rows returned by the associated query or statement.


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.