| 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.MergeJoinResultSet
MergeJoinResultSet | class MergeJoinResultSet extends JoinResultSet (Code) | | Merge two result sets. The left result set (the outer
result set) MUST be unique for this to work correctly.
|
Constructor Summary | |
| MergeJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod leftGreaterThanRight, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost) Create a MergeJoinResultSet
Parameters: leftResultSet - the left (outer) result set Parameters: leftNumCols - columns in left row Parameters: rightResultSet - the right (outer) result set Parameters: rightNumCols - columns in right row Parameters: activation - activation Parameters: leftGreaterThanRight - a generated method that is used toascertain whether the row from the left result set isgreater than the row from the right result set. |
Method Summary | |
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. |
MergeJoinResultSet | MergeJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod leftGreaterThanRight, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost)(Code) | | Create a MergeJoinResultSet
Parameters: leftResultSet - the left (outer) result set Parameters: leftNumCols - columns in left row Parameters: rightResultSet - the right (outer) result set Parameters: rightNumCols - columns in right row Parameters: activation - activation Parameters: leftGreaterThanRight - a generated method that is used toascertain whether the row from the left result set isgreater than the row from the right result set. returns1,0,or -1 to indicate greater than, equal, or less than,respectively Parameters: restriction - generated method for additional qualification Parameters: resultSetNumber - the result set number Parameters: oneRowRightSide - ignored Parameters: optimizerEstimatedRowCount - self-explanatory Parameters: optimizerEstimatedCost - self-explanatory |
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). |
|
|