|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.access.sort.Scan
org.apache.derby.impl.store.access.sort.SortScan
org.apache.derby.impl.store.access.sort.MergeScan
A sort scan that is capable of merging as many merge runs as will fit in the passed-in sort buffer.
Field Summary | |
protected java.util.Vector |
mergeRuns
The merge runs. |
protected StreamContainerHandle[] |
openScans
Array of scan controllers for the merge runs. |
protected SortBuffer |
sortBuffer
The sort buffer we will use. |
private SortObserver |
sortObserver
|
Fields inherited from class org.apache.derby.impl.store.access.sort.SortScan |
current, hold, sort, tran |
Fields inherited from interface org.apache.derby.iapi.store.access.ScanController |
GE, GT, NA |
Constructor Summary | |
(package private) |
MergeScan(MergeSort sort,
TransactionManager tran,
SortBuffer sortBuffer,
java.util.Vector mergeRuns,
SortObserver sortObserver,
boolean hold)
|
Method Summary | |
void |
close()
Close the scan. |
boolean |
closeForEndTransaction(boolean closeHeldScan)
Close the scan. |
boolean |
init(TransactionManager tran)
Initialize the scan, returning false if there was some error. |
(package private) void |
mergeARow(int scanindex)
Insert rows while we keep getting duplicates from the merge run whose scan is in the open scan array entry indexed by scanindex. |
boolean |
next()
Move to the next position in the scan. |
Methods inherited from class org.apache.derby.impl.store.access.sort.SortScan |
fetch, fetchNext |
Methods inherited from class org.apache.derby.impl.store.access.sort.Scan |
delete, didNotQualify, doesCurrentPositionQualify, fetchLocation, fetchNextGroup, 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 |
Field Detail |
protected SortBuffer sortBuffer
protected java.util.Vector mergeRuns
protected StreamContainerHandle[] openScans
private SortObserver sortObserver
Constructor Detail |
MergeScan(MergeSort sort, TransactionManager tran, SortBuffer sortBuffer, java.util.Vector mergeRuns, SortObserver sortObserver, boolean hold)
Method Detail |
public boolean next() throws StandardException
StandardException
- Standard exception policy.ScanController.next()
public void close()
close
in interface GenericScanController
close
in class SortScan
GenericScanController.close()
public boolean closeForEndTransaction(boolean closeHeldScan)
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.
ScanManager.closeForEndTransaction(boolean)
public boolean init(TransactionManager tran) throws StandardException
StandardException
void mergeARow(int scanindex) throws StandardException
StandardException
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |