java.lang.Object
org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl
org.apache.derby.impl.sql.execute.NoPutResultSetImpl
org.apache.derby.impl.sql.execute.HashScanResultSet
org.apache.derby.impl.sql.execute.DistinctScanResultSet
- All Implemented Interfaces:
- org.apache.derby.iapi.sql.execute.CursorResultSet, org.apache.derby.iapi.sql.execute.NoPutResultSet, org.apache.derby.iapi.sql.ResultSet, org.apache.derby.iapi.store.access.RowLocationRetRowSource, org.apache.derby.iapi.store.access.RowSource
- public class DistinctScanResultSet
- extends HashScanResultSet
Eliminates duplicates while scanning the underlying conglomerate.
(Assumes no predicates, for now.)
| Fields inherited from class org.apache.derby.impl.sql.execute.HashScanResultSet |
activation, beginTime, candidate, checkGM, checkNullCols, clonedExecRow, closeTime, cncLen, compactRow, constructorTime, currentRow, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOADFACTOR, DEFAULT_MAX_CAPACITY, eliminateDuplicates, endExecutionTime, finished, firstNext, forUpdate, hashtable, hashtableSize, heapConglomerate, indent, indexName, isConstraint, isolationLevel, isOpen, isTopResultSet, keyColumns, lcc, lockMode, nextQualifiers, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, resultSetNumber, rowsFiltered, rowsSeen, scanProperties, scanQualifiers, scoci, sourceDepth, startExecutionTime, startPositionString, stopPositionString, subIndent, subqueryTrackingArray, tableName, targetResultSet |
|
Constructor Summary |
DistinctScanResultSet(long conglomId,
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo scoci,
org.apache.derby.iapi.sql.Activation activation,
org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator,
int resultSetNumber,
int hashKeyItem,
java.lang.String tableName,
java.lang.String indexName,
boolean isConstraint,
int colRefItem,
int lockMode,
boolean tableLocked,
int isolationLevel,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost,
org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
|
| Methods inherited from class org.apache.derby.impl.sql.execute.HashScanResultSet |
addWarning, attachStatementContext, checkRowPosition, cleanUp, clearCurrentRow, clearOrderableCache, close, closeRowSource, dumpTimeStats, finish, finishAndRTS, getAbsoluteRow, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCompactRow, getCurrentRow, getCurrentTimeMillis, getCursorName, getElapsedMillis, getEndExecutionTimestamp, getEstimatedRowCount, getExecuteTime, getExecutionFactory, getFirstRow, getLanguageConnectionContext, getLastRow, getNextRow, getNextRowFromRowSource, getPointOfAttachment, getPreviousRow, getRelativeRow, getResultDescription, getRowLocation, getRowNumber, getScanIsolationLevel, getScanProperties, getSubqueryTrackingArray, getTimeSpent, getTransactionController, getValidColumns, getWarnings, isClosed, isForUpdate, markAsTopResultSet, modifiedRowCount, needsRowLocation, needsToClone, open, openCore, printQualifiers, printStartPosition, printStopPosition, reopenCore, requiresRelocking, resultSetNumber, returnsRows, rowLocation, setAfterLastRow, setBeforeFirstRow, setCheckConstraints, setCompactRow, setCompatRow, setCurrentRow, setHeapConglomerate, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.sql.ResultSet |
checkRowPosition, cleanUp, finish, getAbsoluteRow, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow |
element
java.util.Enumeration element
DistinctScanResultSet
public DistinctScanResultSet(long conglomId,
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo scoci,
org.apache.derby.iapi.sql.Activation activation,
org.apache.derby.iapi.services.loader.GeneratedMethod resultRowAllocator,
int resultSetNumber,
int hashKeyItem,
java.lang.String tableName,
java.lang.String indexName,
boolean isConstraint,
int colRefItem,
int lockMode,
boolean tableLocked,
int isolationLevel,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost,
org.apache.derby.iapi.services.loader.GeneratedMethod closeCleanup)
throws org.apache.derby.iapi.error.StandardException
getNextRowCore
public org.apache.derby.iapi.sql.execute.ExecRow getNextRowCore()
throws org.apache.derby.iapi.error.StandardException
- Return the next row (if any) from the scan (if open).
- Specified by:
getNextRowCore in interface org.apache.derby.iapi.sql.execute.NoPutResultSet- Overrides:
getNextRowCore in class HashScanResultSet