| Modifier and Type | Field and Description |
|---|---|
| protected DataValueDescriptor[] | current
The row at the current position of the scan, from which fetch will return values. |
| protected boolean | hold
The row at the current position of the scan, from which fetch will return values. |
| protected MergeSort | sort
The sort that this class is scanning. |
| protected TransactionManager | tran
The transactionManager that opened this scan. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public final void | fetch(DataValueDescriptor[]
The row into which the value of the current
position in the scan is to be stored. result)Implements org. Fetch the row at the current position of the Scan. |
| public final boolean | Returns: True if there is a next position in the scan, false if there isn't.The template row into which the value
of the next position in the scan is to be stored. row)Implements org. Fetch the row at the next position of the Scan. |
| public final void | fetchWithoutQualify(DataValueDescriptor[]
The row into which the value of the current
position in the scan is to be stored. result)Implements org. Fetch the row at the current position of the Scan and does not apply the qualifiers. |
| current | back to summary |
|---|---|
| protected DataValueDescriptor[] current The row at the current position of the scan, from which fetch will return values. | |
| hold | back to summary |
|---|---|
| protected boolean hold The row at the current position of the scan, from which fetch will return values. | |
| sort | back to summary |
|---|---|
| protected MergeSort sort The sort that this class is scanning. | |
| tran | back to summary |
|---|---|
| protected TransactionManager tran The transactionManager that opened this scan. | |
| SortScan | back to summary |
|---|---|
| pack-priv SortScan(MergeSort sort, TransactionManager tran, boolean hold) | |
| close | back to summary |
|---|---|
| public void close() Implements org. Close the scan. @see ScanController#close | |
| fetch | back to summary |
|---|---|
| public final void fetch(DataValueDescriptor[] result) throws StandardException Implements org. Fetch the row at the current position of the Scan.
| |
| fetchNext | back to summary |
|---|---|
| public final boolean fetchNext(DataValueDescriptor[] row) throws StandardException Implements org. Fetch the row at the next position of the Scan. If there is a valid next position in the scan then the value in the template storable row is replaced with the value of the row at the current scan position. The columns of the template row must be of the same type as the actual columns in the underlying conglomerate. The resulting contents of templateRow after a fetchNext() which returns false is undefined. The result of calling fetchNext(row) is exactly logically equivalent to making a next() call followed by a fetch(row) call. This interface allows implementations to optimize the 2 calls if possible. RESOLVE (mikem - 2/24/98) - come back to this and see if coding this differently saves in sort scans, as did the heap recoding.
| |
| fetchWithoutQualify | back to summary |
|---|---|
| public final void fetchWithoutQualify(DataValueDescriptor[] result) throws StandardException Implements org. Fetch the row at the current position of the Scan and does not apply the qualifiers. This method will always throw an exception. (SQLState.SORT_IMPROPER_SCAN_METHOD)
| |