| java.lang.Object org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl org.apache.derby.impl.sql.execute.NoPutResultSetImpl org.apache.derby.impl.sql.execute.JoinResultSet org.apache.derby.impl.sql.execute.NestedLoopJoinResultSet
All known Subclasses: org.apache.derby.impl.sql.execute.HashJoinResultSet, org.apache.derby.impl.sql.execute.NestedLoopLeftOuterJoinResultSet,
NestedLoopJoinResultSet | class NestedLoopJoinResultSet extends JoinResultSet (Code) | | Takes 2 NoPutResultSets and a join filter and returns
the join's rows satisfying the filter as a result set.
|
Constructor Summary | |
| NestedLoopJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, String userSuppliedOptimizerOverrides) |
Method Summary | |
void | clearScanState() Clear any private state that changes during scans. | public void | close() If the result set has been opened,
close the open scan. | public ExecRow | getNextRowCore() Return the requested values computed
from the next row (if any) for which
the restriction evaluates to true. | 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. |
NestedLoopJoinResultSet | NestedLoopJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, String userSuppliedOptimizerOverrides)(Code) | | |
clearScanState | void clearScanState()(Code) | | Clear any private state that changes during scans.
This includes things like the last row seen, etc.
THis does not include immutable things that are
typically set up in the constructor.
This method is called on open()/close() and reopen()
WARNING: this should be implemented in every sub
class and it should always call super.clearScanState().
|
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 parameters
are evaluated for each row.
exception: StandardException - Thrown on error exception: StandardException - ResultSetNotOpen thrown if closed the next row in the join 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). |
|
|