Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute.rts

public Class RealSetOpResultSetStatistics

extends RealNoPutResultSetStatistics
Class Inheritance
Imports
org.apache.derby.iapi.sql.execute.ResultSetStatistics, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.catalog.UUID, org.apache.derby.impl.sql.catalog.XPLAINResultSetDescriptor, .XPLAINResultSetTimingsDescriptor, org.apache.derby.impl.sql.execute.xplain.XPLAINUtil, org.apache.derby.iapi.sql.execute.xplain.XPLAINVisitor, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.impl.sql.compile.IntersectOrExceptNode

ResultSetStatistics implementation for SetOpResultSet.

Field Summary

Modifier and TypeField and Description
public ResultSetStatistics
public int
public ResultSetStatistics
public int
public int
public int
Inherited from org.apache.derby.impl.sql.execute.rts.RealNoPutResultSetStatistics:
indentresultSetNumbersourceDepthsubIndent

Constructor Summary

AccessConstructor and Description
public
RealSetOpResultSetStatistics(int
set operation type
opType
,
int
number of open
numOpens
,
int
rows seen
rowsSeen
,
int
rows filtered
rowsFiltered
,
long
the time for construction
constructorTime
,
long
the time for open operation
openTime
,
long
the time for next operation
nextTime
,
long
the time for close operation
closeTime
,
int
the result set number
resultSetNumber
,
int
rows seen by left source input
rowsSeenLeft
,
int
rows seen by right source input
rowsSeenRight
,
int
rows returned
rowsReturned
,
double
optimizer estimated row count
optimizerEstimatedRowCount
,
double
optimizer estimated cost
optimizerEstimatedCost
,
ResultSetStatistics
left source runtime statistics
leftResultSetStatistics
,
ResultSetStatistics
right source runtime statistics
rightResultSetStatistics
)

Constructs a new RealSetOpResultSetStatistics object to represent the runtime statistics for SetOpResultSet.

Method Summary

Modifier and TypeMethod and Description
public void
accept(XPLAINVisitor visitor)

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINable.accept.

This method gets called to let a visitor visit this XPLAINable object.

public Vector<ResultSetStatistics>

Returns:

the children runtime statistics of this RealSetOpResultSetStatistics object stored in a Vector.
getChildren
()

Overrides org.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics.getChildren.

Retrieves the children runtime statistics of this RealSetOpResultSetStatistics object

public String

Returns:

the name of the node as a String.
getNodeName
()

Implements abstract org.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics.getNodeName.

Format for display, a name for this node.

public Object
public String
public String
public String

Returns:

String The information on the scan nodes from the statement execution plan as a String.
getScanStatisticsText
(String
if not NULL then print information for this table only
tableName
,
int
Indentation level.
depth
)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatistics.getScanStatisticsText.

Return information on the scan nodes from the statement execution plan as a String.

public String

Returns:

the statement execution plan as a String.
getStatementExecutionPlanText
(int
Indentation level.
depth
)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatistics.getStatementExecutionPlanText.

Return the statement execution plan as a String.

public String

Returns:

the runtime statistics of this object in textual representation as a String.
toString
()

Overrides java.lang.Object.toString.

Return the runtime statistics of this object in textual representation

Inherited from org.apache.derby.impl.sql.execute.rts.RealNoPutResultSetStatistics:
initFormatInfo

Field Detail

leftResultSetStatisticsback to summary
public ResultSetStatistics leftResultSetStatistics
opTypeback to summary
public int opType
rightResultSetStatisticsback to summary
public ResultSetStatistics rightResultSetStatistics
rowsReturnedback to summary
public int rowsReturned
rowsSeenLeftback to summary
public int rowsSeenLeft
rowsSeenRightback to summary
public int rowsSeenRight

Constructor Detail

RealSetOpResultSetStatisticsback to summary
public RealSetOpResultSetStatistics(int opType, int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, int rowsSeenLeft, int rowsSeenRight, int rowsReturned, double optimizerEstimatedRowCount, double optimizerEstimatedCost, ResultSetStatistics leftResultSetStatistics, ResultSetStatistics rightResultSetStatistics)

Constructs a new RealSetOpResultSetStatistics object to represent the runtime statistics for SetOpResultSet. See org.apache.derby.impl.sql.execute.SetOpResultSet

Parameters
opType:int

set operation type

numOpens:int

number of open

rowsSeen:int

rows seen

rowsFiltered:int

rows filtered

constructorTime:long

the time for construction

openTime:long

the time for open operation

nextTime:long

the time for next operation

closeTime:long

the time for close operation

resultSetNumber:int

the result set number

rowsSeenLeft:int

rows seen by left source input

rowsSeenRight:int

rows seen by right source input

rowsReturned:int

rows returned

optimizerEstimatedRowCount:double

optimizer estimated row count

optimizerEstimatedCost:double

optimizer estimated cost

leftResultSetStatistics:ResultSetStatistics

left source runtime statistics

rightResultSetStatistics:ResultSetStatistics

right source runtime statistics

Method Detail

acceptback to summary
public void accept(XPLAINVisitor visitor)

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINable.accept.

Doc from org.apache.derby.iapi.sql.execute.xplain.XPLAINable.accept.

This method gets called to let a visitor visit this XPLAINable object. The general contract is to implement pre-order, depth-first traversal to produce a predictable traversal behaviour.

getChildrenback to summary
public Vector<ResultSetStatistics> getChildren()

Overrides org.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics.getChildren.

Retrieves the children runtime statistics of this RealSetOpResultSetStatistics object

Returns:Vector<ResultSetStatistics>

the children runtime statistics of this RealSetOpResultSetStatistics object stored in a Vector.

getNodeNameback to summary
public String getNodeName()

Implements abstract org.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics.getNodeName.

Format for display, a name for this node.

Returns:String

the name of the node as a String.

getResultSetDescriptorback to summary
public Object getResultSetDescriptor(Object rsID, Object parentID, Object scanID, Object sortID, Object stmtID, Object timingID)

Overrides org.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics.getResultSetDescriptor.

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINable.getResultSetDescriptor.

getRSXplainDetailsback to summary
public String getRSXplainDetails()

Overrides org.apache.derby.impl.sql.execute.rts.RealBasicNoPutResultSetStatistics.getRSXplainDetails.

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINable.getRSXplainDetails.

getRSXplainTypeback to summary
public String getRSXplainType()

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINable.getRSXplainType.

getScanStatisticsTextback to summary
public String getScanStatisticsText(String tableName, int depth)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatistics.getScanStatisticsText.

Return information on the scan nodes from the statement execution plan as a String.

Parameters
tableName:String

if not NULL then print information for this table only

depth:int

Indentation level.

Returns:String

String The information on the scan nodes from the statement execution plan as a String.

getStatementExecutionPlanTextback to summary
public String getStatementExecutionPlanText(int depth)

Implements org.apache.derby.iapi.sql.execute.ResultSetStatistics.getStatementExecutionPlanText.

Return the statement execution plan as a String.

Parameters
depth:int

Indentation level.

Returns:String

the statement execution plan as a String.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the runtime statistics of this object in textual representation

Returns:String

the runtime statistics of this object in textual representation as a String.