| java.lang.Object org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl org.apache.derby.impl.sql.execute.NoPutResultSetImpl org.apache.derby.impl.sql.execute.LastIndexKeyResultSet
LastIndexKeyResultSet | class LastIndexKeyResultSet extends NoPutResultSetImpl (Code) | | Return the last key in an index. Used to perform
max().
author: jamie |
Constructor Summary | |
public | LastIndexKeyResultSet(Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost) A last index key result set returns the last row from
the index in question. |
Method Summary | |
public void | close() If the result set has been opened,
close the open scan. | public ExecRow | getCurrentRow() This result set has its row from the last fetch done. | public ExecRow | getNextRowCore() Return the next row (if any) from the scan (if open). | public long | getTimeSpent(int type) Return the total amount of time spent in this ResultSet
Parameters: type - CURRENT_RESULTSET_ONLY - time spent only in this ResultSetENTIRE_RESULTSET_TREE - time spent in this ResultSet and below. | public void | openCore() open a scan on the table. |
coarserLock | public boolean coarserLock(Code) | | |
conglomId | protected long conglomId(Code) | | |
isolationLevel | public int isolationLevel(Code) | | |
lockMode | public int lockMode(Code) | | |
returnedRow | public boolean returnedRow(Code) | | |
runTimeStatisticsOn | protected boolean runTimeStatisticsOn(Code) | | |
startSearchOperator | protected int startSearchOperator(Code) | | |
stopSearchOperator | protected int stopSearchOperator(Code) | | |
userSuppliedOptimizerOverrides | public String userSuppliedOptimizerOverrides(Code) | | |
LastIndexKeyResultSet | public LastIndexKeyResultSet(Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException(Code) | | A last index key result set returns the last row from
the index in question. It is used as an ajunct to max().
Parameters: activation - the activation for this result set,which provides the context for the row allocation operation. Parameters: resultSetNumber - The resultSetNumber for the ResultSet Parameters: resultRowAllocator - a reference to a method in the activationthat creates a holder for the result row of the scan. Maybe a partial row. ExecRow rowAllocator() throws StandardException; Parameters: conglomId - the conglomerate of the table to be scanned. Parameters: tableName - The full name of the table Parameters: userSuppliedOptimizerOverrides - Overrides specified by the user on the sql Parameters: indexName - The name of the index, if one used to access table. Parameters: colRefItem - An saved item for a bitSet of columns thatare referenced in the underlying table. -1 ifno item. Parameters: lockMode - The lock granularity to use (seeTransactionController in access) Parameters: tableLocked - Whether or not the table is marked as using table locking(in sys.systables) Parameters: isolationLevel - Isolation level (specified or not) to use on scans Parameters: optimizerEstimatedRowCount - Estimated total # of rows byoptimizer Parameters: optimizerEstimatedCost - Estimated total cost by optimizer exception: StandardException - thrown when unable to create theresult set |
getTimeSpent | public long getTimeSpent(int type)(Code) | | Return the total amount of time spent in this ResultSet
Parameters: type - CURRENT_RESULTSET_ONLY - time spent only in this ResultSetENTIRE_RESULTSET_TREE - time spent in this ResultSet and below. long The total amount of time spent (in milliseconds). |
openCore | public void openCore() throws StandardException(Code) | | open a scan on the table. scan parameters are evaluated
at each open, so there is probably some way of altering
their values...
exception: StandardException - thrown on failure to open |
|
|