CursorResultSet
, NoPutResultSet
, ResultSet
, RowLocationRetRowSource
, RowSource
MergeJoinResultSet
, NestedLoopJoinResultSet
abstract class JoinResultSet extends NoPutResultSetImpl implements CursorResultSet
BasicNoPutResultSetImpl.FieldComparator
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
isRightOpen |
|
protected int |
leftNumCols |
|
NoPutResultSet |
leftResultSet |
|
protected ExecRow |
leftRow |
|
protected ExecRow |
mergedRow |
|
boolean |
notExistsRightSide |
|
boolean |
oneRowRightSide |
|
protected GeneratedMethod |
restriction |
|
long |
restrictionTime |
|
protected int |
rightNumCols |
|
NoPutResultSet |
rightResultSet |
|
protected ExecRow |
rightRow |
|
int |
rowsReturned |
|
int |
rowsSeenLeft |
|
int |
rowsSeenRight |
|
(package private) java.lang.String |
userSuppliedOptimizerOverrides |
activation, beginTime, closeTime, compactRow, constructorTime, currentRow, endExecutionTime, finished, isOpen, isTopResultSet, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, rowsFiltered, rowsSeen, startExecutionTime, subqueryTrackingArray
ABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVE, TEMPORARY_RESULT_SET_NUMBER
checkNullCols, clonedExecRow, cncLen, resultSetNumber, targetResultSet
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Constructor | Description |
---|---|
JoinResultSet(NoPutResultSet leftResultSet,
int leftNumCols,
NoPutResultSet rightResultSet,
int rightNumCols,
Activation activation,
GeneratedMethod restriction,
int resultSetNumber,
boolean oneRowRightSide,
boolean notExistsRightSide,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost,
java.lang.String userSuppliedOptimizerOverrides) |
Modifier and Type | Method | Description |
---|---|---|
(package private) void |
clearScanState() |
Clear any private state that changes during scans.
|
void |
close() |
If the result set has been opened,
close the open scan.
|
protected void |
closeRight() |
close the rightResultSet
|
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() |
A join is combining rows from two sources, so it
should never be used in a positioned update or delete.
|
RowLocation |
getRowLocation() |
A join is combining rows from two sources, so it has no
single row location to return; just return a null.
|
void |
openCore() |
open a scan on the join.
|
protected void |
openRight() |
open the rightResultSet.
|
void |
reopenCore() |
reopen a a join.
|
addWarning, attachStatementContext, checkCancellationFlag, checkRowPosition, childrenToXML, cleanUp, dumpTimeStats, finishAndRTS, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCompactRow, getCurrentTimeMillis, getElapsedMillis, getEndExecutionTimestamp, getEstimatedRowCount, getExecuteTime, getExecutionFactory, getFirstRow, getLanguageConnectionContext, getLastRow, getNextRow, getNextRowCore, getPointOfAttachment, getPreviousRow, getRelativeRow, getRowNumber, getScanIsolationLevel, getSubqueryTrackingArray, getTransactionController, getWarnings, isClosed, isXplainOnlyMode, markAsTopResultSet, modifiedRowCount, open, recordConstructorTime, requiresRelocking, returnsRows, setAfterLastRow, setBeforeFirstRow, setCompactRow, setCompatRow, toXML, toXML
clearCurrentRow, clearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, isForUpdate, markRowAsDeleted, needsRowLocation, needsRowLocationForDeferredCheckConstraints, needsToClone, offendingRowLocation, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setHasDeferrableChecks, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, unpackHashValue, updateRow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addWarning, checkRowPosition, cleanUp, clearCurrentRow, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow, toXML
public int rowsSeenLeft
public int rowsSeenRight
public int rowsReturned
public long restrictionTime
protected boolean isRightOpen
protected ExecRow leftRow
protected ExecRow rightRow
protected ExecRow mergedRow
public NoPutResultSet leftResultSet
protected int leftNumCols
public NoPutResultSet rightResultSet
protected int rightNumCols
protected GeneratedMethod restriction
public boolean oneRowRightSide
public boolean notExistsRightSide
java.lang.String userSuppliedOptimizerOverrides
JoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRightSide, double optimizerEstimatedRowCount, double optimizerEstimatedCost, java.lang.String userSuppliedOptimizerOverrides)
void clearScanState()
This method is called on open()/close() and reopen()
public void openCore() throws StandardException
openCore
in interface NoPutResultSet
StandardException
- Thrown on errorpublic void reopenCore() throws StandardException
reopenCore
in interface NoPutResultSet
reopenCore
in class BasicNoPutResultSetImpl
StandardException
- thrown if cursor finished.NoPutResultSet.openCore()
public void close() throws StandardException
close
in interface ResultSet
close
in class NoPutResultSetImpl
StandardException
- thrown on errorpublic void finish() throws StandardException
ResultSet
finish
in interface ResultSet
finish
in class BasicNoPutResultSetImpl
StandardException
- on errorpublic RowLocation getRowLocation()
getRowLocation
in interface CursorResultSet
CursorResultSet
public ExecRow getCurrentRow()
getCurrentRow
in interface CursorResultSet
CursorResultSet
protected void openRight() throws StandardException
StandardException
- Thrown on errorprotected void closeRight() throws StandardException
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.