public class TransactionTable extends VTITemplate implements VTICosting
select * from SYSCS_DIAG.TRANSACTION_TABLE
The TransactionTable virtual table takes a snap shot of the transaction table while the system is in flux, so it is possible that some transactions may be in transition state while the snap shot is taken. We choose to do this rather then impose extraneous timing restrictions so that the use of this tool will not alter the normal timing and flow of execution in the application.
The TransactionTable virtual table has the following columns:
| Modifier and Type | Field and Description |
|---|---|
private static ResultColumnDescriptor[] |
columnInfo |
(package private) int |
currentRow |
(package private) boolean |
initialized |
private static java.sql.ResultSetMetaData |
metadata |
private TransactionInfo[] |
transactionTable |
private boolean |
wasNull |
defaultEstimatedCost, defaultEstimatedRowCount| Constructor and Description |
|---|
TransactionTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
double |
getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment)
Get the estimated cost for a single instantiation of a Table Function.
|
double |
getEstimatedRowCount(VTIEnvironment vtiEnvironment)
Get the estimated row count for a single scan of a Table Function.
|
java.sql.ResultSetMetaData |
getMetaData() |
java.lang.String |
getString(int columnNumber)
All columns in TransactionTable VTI is of String type.
|
boolean |
next() |
boolean |
supportsMultipleInstantiations(VTIEnvironment vtiEnvironment)
Find out if the ResultSet of the Table Function can be instantiated multiple times.
|
boolean |
wasNull() |
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestampabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getInt, getLong, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getStatement, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXMLprivate TransactionInfo[] transactionTable
boolean initialized
int currentRow
private boolean wasNull
private static final ResultColumnDescriptor[] columnInfo
private static final java.sql.ResultSetMetaData metadata
public TransactionTable()
throws StandardException
StandardExceptionpublic java.sql.ResultSetMetaData getMetaData()
getMetaData in interface java.sql.ResultSetgetMetaData in class VTITemplateBaseResultSet.getMetaData()public boolean next()
throws java.sql.SQLException
next in interface java.sql.ResultSetnext in class VTITemplatejava.sql.SQLException - if no transaction context can be foundResultSet.next()public void close()
close in interface java.lang.AutoCloseableclose in interface java.sql.ResultSetclose in class VTITemplateResultSet.close()public java.lang.String getString(int columnNumber)
getString in interface java.sql.ResultSetgetString in class VTITemplateBaseResultSet.getString(int)public boolean wasNull()
wasNull in interface java.sql.ResultSetwasNull in class VTITemplateBaseResultSet.wasNull()public double getEstimatedRowCount(VTIEnvironment vtiEnvironment)
VTICostinggetEstimatedRowCount in interface VTICostingvtiEnvironment - The state variable for optimizing the Table Function.VTICosting.getEstimatedRowCount(org.apache.derby.vti.VTIEnvironment)public double getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment)
VTICostinggetEstimatedCostPerInstantiation in interface VTICostingvtiEnvironment - The state variable for optimizing the Table Function.VTICosting.getEstimatedCostPerInstantiation(org.apache.derby.vti.VTIEnvironment)public boolean supportsMultipleInstantiations(VTIEnvironment vtiEnvironment)
VTICostingsupportsMultipleInstantiations in interface VTICostingvtiEnvironment - The state variable for optimizing the Table Function.VTICosting.supportsMultipleInstantiations(org.apache.derby.vti.VTIEnvironment)Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.