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

public Class RealHashScanStatistics

extends RealNoPutResultSetStatistics
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.execute.rts.RealDistinctScanStatistics
Imports
org.apache.derby.shared.common.util.ArrayUtil, org.apache.derby.iapi.services.io.StoredFormatIds, .FormatableHashtable, .FormatableProperties, org.apache.derby.iapi.util.PropertyUtil, .StringUtil, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.catalog.UUID, org.apache.derby.impl.sql.catalog.XPLAINResultSetDescriptor, .XPLAINResultSetTimingsDescriptor, .XPLAINScanPropsDescriptor, org.apache.derby.impl.sql.execute.xplain.XPLAINUtil, org.apache.derby.iapi.sql.execute.xplain.XPLAINVisitor, java.io.ObjectOutput, .ObjectInput, .IOException, java.util.Enumeration, .Hashtable, .Properties

ResultSetStatistics implemenation for HashScanResultSet.

Field Summary

Modifier and TypeField and Description
public int[]
public int
public String
public boolean
public String
public String
public String
public FormatableProperties
public String
public String
public String
public String
Inherited from org.apache.derby.impl.sql.execute.rts.RealNoPutResultSetStatistics:
indentresultSetNumbersourceDepthsubIndent

Constructor Summary

AccessConstructor and Description
public
RealHashScanStatistics(int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, String tableName, String indexName, boolean isConstraint, int hashtableSize, int[] hashKeyColumns, String scanQualifiers, String nextQualifiers, Properties scanProperties, String startPosition, String stopPosition, String isolationLevel, String lockString, double optimizerEstimatedRowCount, double optimizerEstimatedCost)

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 String
getNodeName()

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

Format for display, a name for this node.

public String
getNodeOn()

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

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

public Object
public String
public String
public Object
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:

String The statement executio 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
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

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

Field Detail

hashKeyColumnsback to summary
public int[] hashKeyColumns
hashtableSizeback to summary
public int hashtableSize
indexNameback to summary
public String indexName
isConstraintback to summary
public boolean isConstraint
isolationLevelback to summary
public String isolationLevel
lockStringback to summary
public String lockString
nextQualifiersback to summary
public String nextQualifiers
scanPropertiesback to summary
public FormatableProperties scanProperties
scanQualifiersback to summary
public String scanQualifiers
startPositionback to summary
public String startPosition
stopPositionback to summary
public String stopPosition
tableNameback to summary
public String tableName

Constructor Detail

RealHashScanStatisticsback to summary
public RealHashScanStatistics(int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, String tableName, String indexName, boolean isConstraint, int hashtableSize, int[] hashKeyColumns, String scanQualifiers, String nextQualifiers, Properties scanProperties, String startPosition, String stopPosition, String isolationLevel, String lockString, double optimizerEstimatedRowCount, double optimizerEstimatedCost)

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.

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.

getNodeOnback to summary
public String getNodeOn()

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

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

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.

getScanPropsDescriptorback to summary
public Object getScanPropsDescriptor(Object scanPropsID)

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

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

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

String The statement executio plan as a String.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object