class SetOpResultSet extends NoPutResultSetImpl implements CursorResultSet
| Modifier and Type | Field and Description |
|---|---|
private Activation |
activation |
private boolean |
all |
private int[] |
intermediateOrderByColumns |
private int[] |
intermediateOrderByDirection |
private boolean[] |
intermediateOrderByNullsLow |
private ExecRow |
leftInputRow |
private NoPutResultSet |
leftSource |
private int |
opType |
private DataValueDescriptor[] |
prevCols |
private int |
resultSetNumber |
private ExecRow |
rightInputRow |
private NoPutResultSet |
rightSource |
private int |
rowsReturned |
private int |
rowsSeenLeft |
private int |
rowsSeenRight |
checkNullCols, clonedExecRow, cncLen, targetResultSetbeginTime, closeTime, compactRow, constructorTime, currentRow, endExecutionTime, finished, isOpen, isTopResultSet, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, rowsFiltered, rowsSeen, startExecutionTime, subqueryTrackingArrayCURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST| Constructor and Description |
|---|
SetOpResultSet(NoPutResultSet leftSource,
NoPutResultSet rightSource,
Activation activation,
int resultSetNumber,
long optimizerEstimatedRowCount,
double optimizerEstimatedCost,
int opType,
boolean all,
int intermediateOrderByColumnsSavedObject,
int intermediateOrderByDirectionSavedObject,
int intermediateOrderByNullsLowSavedObject) |
| Modifier and Type | Method and Description |
|---|---|
private void |
advanceRightPastDuplicates(DataValueDescriptor[] leftColumns) |
void |
close()
If the result set has been opened,
close the currently open source.
|
private int |
compare(DataValueDescriptor[] leftCols,
DataValueDescriptor[] rightCols) |
void |
finish()
Tells the system that there will be no more access
to any database information via this result set;
in particular, no more calls to open().
|
ExecRow |
getCurrentRow()
Returns the current row of the result set.
|
NoPutResultSet |
getLeftSourceInput()
Return the left source input of this
SetOpResultSet |
ExecRow |
getNextRowCore()
Return the requested values computed
from the next row (if any) for which
the restriction evaluates to true.
|
int |
getOpType()
Return the set operation of this
SetOpResultSet |
int |
getResultSetNumber()
Return the result set number
|
NoPutResultSet |
getRightSourceInput()
Return the right source input of this
SetOpResultSet |
RowLocation |
getRowLocation()
Returns the row location of the current base table row of the cursor.
|
int |
getRowsReturned()
Return the number of rows returned from the result set
|
int |
getRowsSeenLeft()
Return the number of rows seen on the left source input
|
int |
getRowsSeenRight()
Return the number of rows seen on the right source input
|
long |
getTimeSpent(int type)
Return the total amount of time spent in this ResultSet
|
private boolean |
isDuplicate(DataValueDescriptor[] curColumns) |
void |
openCore()
open the first source.
|
clearCurrentRow, clearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, isForUpdate, markRowAsDeleted, needsRowLocation, needsToClone, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, updateRowaddWarning, attachStatementContext, checkCancellationFlag, checkRowPosition, cleanUp, dumpTimeStats, finishAndRTS, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCompactRow, getCurrentTimeMillis, getElapsedMillis, getEndExecutionTimestamp, getEstimatedRowCount, getExecuteTime, getExecutionFactory, getFirstRow, getLanguageConnectionContext, getLastRow, getNextRow, getPointOfAttachment, getPreviousRow, getRelativeRow, getRowNumber, getScanIsolationLevel, getSubqueryTrackingArray, getTransactionController, getWarnings, isClosed, isXplainOnlyMode, markAsTopResultSet, modifiedRowCount, open, recordConstructorTime, reopenCore, requiresRelocking, returnsRows, setAfterLastRow, setBeforeFirstRow, setCompactRow, setCompatRowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWarning, checkRowPosition, cleanUp, clearCurrentRow, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRowprivate final NoPutResultSet leftSource
private final NoPutResultSet rightSource
private final Activation activation
private final int opType
private final boolean all
private final int resultSetNumber
private DataValueDescriptor[] prevCols
private ExecRow leftInputRow
private ExecRow rightInputRow
private final int[] intermediateOrderByColumns
private final int[] intermediateOrderByDirection
private final boolean[] intermediateOrderByNullsLow
private int rowsSeenLeft
private int rowsSeenRight
private int rowsReturned
SetOpResultSet(NoPutResultSet leftSource, NoPutResultSet rightSource, Activation activation, int resultSetNumber, long optimizerEstimatedRowCount, double optimizerEstimatedCost, int opType, boolean all, int intermediateOrderByColumnsSavedObject, int intermediateOrderByDirectionSavedObject, int intermediateOrderByNullsLowSavedObject)
public void openCore()
throws StandardException
openCore in interface NoPutResultSetStandardException - thrown on failurepublic ExecRow getNextRowCore() throws StandardException
NoPutResultSetrestriction and projection parameters are evaluated for each row.
getNextRowCore in interface NoPutResultSetgetNextRowCore in class BasicNoPutResultSetImplStandardException - thrown on failureNoPutResultSet.getNextRowCore()private void advanceRightPastDuplicates(DataValueDescriptor[] leftColumns) throws StandardException
StandardExceptionprivate int compare(DataValueDescriptor[] leftCols, DataValueDescriptor[] rightCols) throws StandardException
StandardExceptionprivate boolean isDuplicate(DataValueDescriptor[] curColumns) throws StandardException
StandardExceptionpublic ExecRow getCurrentRow()
CursorResultSetgetCurrentRow in interface CursorResultSetpublic void close()
throws StandardException
close in interface ResultSetclose in class NoPutResultSetImplStandardException - thrown on errorpublic void finish()
throws StandardException
ResultSetfinish in interface ResultSetfinish in class BasicNoPutResultSetImplStandardException - on errorpublic long getTimeSpent(int type)
getTimeSpent in interface ResultSettype - CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.public RowLocation getRowLocation() throws StandardException
CursorResultSetgetRowLocation in interface CursorResultSetStandardException - thrown on failureCursorResultSetpublic int getOpType()
SetOpResultSetIntersectOrExceptNode.INTERSECT_OP for
Intersect operation or IntersectOrExceptNode.EXCEPT_OP
for Except operationIntersectOrExceptNodepublic int getResultSetNumber()
public NoPutResultSet getLeftSourceInput()
SetOpResultSetSetOpResultSetNoPutResultSetpublic NoPutResultSet getRightSourceInput()
SetOpResultSetSetOpResultSetNoPutResultSetpublic int getRowsSeenLeft()
public int getRowsSeenRight()
public int getRowsReturned()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.