org.apache.derby.impl.store.access.sort
Class SortBufferScan
java.lang.Object
org.apache.derby.impl.store.access.sort.Scan
org.apache.derby.impl.store.access.sort.SortScan
org.apache.derby.impl.store.access.sort.SortBufferScan
- All Implemented Interfaces:
- GenericScanController, GroupFetchScanController, RowCountable, ScanController, ScanInfo, ScanManager
- public class SortBufferScan
- extends SortScan
A sort scan that just reads rows out of a sorter.
Method Summary |
void |
close()
Close the scan. |
boolean |
closeForEndTransaction(boolean closeHeldScan)
Close the scan. |
boolean |
next()
Move to the next position in the scan. |
Methods inherited from class org.apache.derby.impl.store.access.sort.Scan |
delete, didNotQualify, doesCurrentPositionQualify, fetchLocation, fetchNextGroup, fetchSet, getAllScanInfo, getEstimatedRowCount, getScanInfo, isCurrentPositionDeleted, isKeyed, isTableLocked, newRowLocationTemplate, reopenScan, reopenScanByRowLocation, replace, savePosition, setEstimatedRowCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sortBuffer
protected SortBuffer sortBuffer
- The sorter we're returning rows from.
SortBufferScan
SortBufferScan(MergeSort sort,
TransactionManager tran,
SortBuffer sortBuffer,
boolean hold)
next
public boolean next()
throws StandardException
- Move to the next position in the scan.
- Returns:
- True if there is a next position in the scan,
false if there isn't.
- Throws:
StandardException
- Standard exception policy.- See Also:
ScanController.next()
closeForEndTransaction
public boolean closeForEndTransaction(boolean closeHeldScan)
- Close the scan.
- Parameters:
closeHeldScan
- If true, means to close scan even if it has been
opened to be kept opened across commit. This is
used to close these scans on abort.
- Returns:
- boolean indicating that the close has resulted in a real close
of the scan. A held scan will return false if called
by closeForEndTransaction(false), otherwise it will
return true. A non-held scan will always return true.
close
public void close()
- Close the scan.
- Specified by:
close
in interface GenericScanController
- Overrides:
close
in class SortScan
- See Also:
GenericScanController.close()
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.