| Modifier and Type | Field and Description |
|---|---|
| protected 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 |
| Access | Constructor and Description |
|---|---|
| pack-priv | MergeScan(MergeSort sort, TransactionManager tran, SortBuffer sortBuffer, Vector<Long> mergeRuns, SortObserver sortObserver, boolean hold)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. Close the scan. |
| public boolean | closeForEndTransaction(boolean
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. closeHeldScan)Implements org. Close the scan. |
| public boolean | |
| pack-priv 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. |
| public boolean | next()
Implements org. Move to the next position in the scan. |
| mergeRuns | back to summary |
|---|---|
| protected Vector<Long> mergeRuns The merge runs. | |
| openScans | back to summary |
|---|---|
| protected StreamContainerHandle[] openScans Array of scan controllers for the merge runs. Entries in the array become null as the last row is pulled out and the scan is closed. | |
| sortBuffer | back to summary |
|---|---|
| protected SortBuffer sortBuffer The sort buffer we will use. | |
| sortObserver | back to summary |
|---|---|
| private SortObserver sortObserver | |
| MergeScan | back to summary |
|---|---|
| pack-priv MergeScan(MergeSort sort, TransactionManager tran, SortBuffer sortBuffer, Vector<Long> mergeRuns, SortObserver sortObserver, boolean hold) | |
| close | back to summary |
|---|---|
| public void close() Overrides org. Implements org. Close the scan. | |
| closeForEndTransaction | back to summary |
|---|---|
| public boolean closeForEndTransaction(boolean closeHeldScan) Implements org. Close the scan.
| |
| init | back to summary |
|---|---|
| public boolean init(TransactionManager tran) throws StandardException Initialize the scan, returning false if there was some error. | |
| mergeARow | back to summary |
|---|---|
| pack-priv void mergeARow(int scanindex) throws StandardException Insert rows while we keep getting duplicates from the merge run whose scan is in the open scan array entry indexed by scanindex. | |
| next | back to summary |
|---|---|
| public boolean next() throws StandardException Implements org. Move to the next position in the scan.
| |