| java.lang.Object org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl org.apache.derby.impl.sql.execute.NoPutResultSetImpl org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet
IndexRowToBaseRowResultSet | class IndexRowToBaseRowResultSet extends NoPutResultSetImpl implements CursorResultSet(Code) | | Takes a result set with a RowLocation as the last column, and uses the
RowLocation to get and return a row from the given base conglomerate.
Normally, the input result set will be a TableScanResultSet scanning an
index conglomerate.
author: jeff |
Constructor Summary | |
| IndexRowToBaseRowResultSet(long conglomId, int scociItem, Activation a, NoPutResultSet source, GeneratedMethod resultRowAllocator, int resultSetNumber, String indexName, int heapColRefItem, int indexColRefItem, int indexColMapItem, GeneratedMethod restriction, boolean forUpdate, double optimizerEstimatedRowCount, double optimizerEstimatedCost) |
Method Summary | |
public void | close() If the result set has been opened,
close the open scan. | public ExecRow | getCurrentRow() Gets last row returned. | public ExecRow | getNextRowCore() Return the requested values computed
from the next row (if any) for which
the restriction evaluates to true.
restriction and projection parameters
are evaluated for each row.
exception: StandardException - thrown on failure. exception: StandardException - ResultSetNotOpen thrown if not yet open. | public RowLocation | getRowLocation() Return the RowLocation of the base row. | 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 boolean | isForUpdate() Is this ResultSet or it's source result set for update.
beetle 3865: updateable cursor using index scan. | public void | openCore() open this ResultSet. | public void | positionScanAtRowLocation(RowLocation rl) | public void | reopenCore() reopen this ResultSet. |
copiedFromSource | boolean copiedFromSource(Code) | | |
currentRowPrescanned | protected boolean currentRowPrescanned(Code) | | |
restrictionTime | public long restrictionTime(Code) | | |
IndexRowToBaseRowResultSet | IndexRowToBaseRowResultSet(long conglomId, int scociItem, Activation a, NoPutResultSet source, GeneratedMethod resultRowAllocator, int resultSetNumber, String indexName, int heapColRefItem, int indexColRefItem, int indexColMapItem, GeneratedMethod restriction, boolean forUpdate, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException(Code) | | |
getNextRowCore | public ExecRow getNextRowCore() throws StandardException(Code) | | Return the requested values computed
from the next row (if any) for which
the restriction evaluates to true.
restriction and projection parameters
are evaluated for each row.
exception: StandardException - thrown on failure. exception: StandardException - ResultSetNotOpen thrown if not yet open. the next row in the result |
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). |
isForUpdate | public boolean isForUpdate()(Code) | | Is this ResultSet or it's source result set for update.
beetle 3865: updateable cursor using index scan. We didn't need this function
before because we couldn't use index for update cursor.
Whether or not the result set is for update. |
|
|