Top Description Fields Constructors Methods
org.apache.derby.impl.store.access.sort

public Class SortBufferScan

extends SortScan
Class Inheritance
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.store.access.conglomerate.TransactionManager

A sort scan that just reads rows out of a sorter.

Field Summary

Modifier and TypeField and Description
protected SortBuffer
sortBuffer

The sorter we're returning rows from.

Inherited from org.apache.derby.impl.store.access.sort.SortScan:
currentholdsorttran

Constructor Summary

AccessConstructor and Description
pack-priv
SortBufferScan(MergeSort sort, TransactionManager tran, SortBuffer sortBuffer, boolean hold)

Method Summary

Modifier and TypeMethod and Description
public void
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.apache.derby.iapi.store.access.conglomerate.ScanManager.closeForEndTransaction.

Close the scan.

public boolean
Inherited from org.apache.derby.impl.store.access.sort.SortScan:
fetchfetchNextfetchWithoutQualify

Field Detail

sortBufferback to summary
protected SortBuffer sortBuffer

The sorter we're returning rows from.

Constructor Detail

SortBufferScanback to summary
pack-priv SortBufferScan(MergeSort sort, TransactionManager tran, SortBuffer sortBuffer, boolean hold)

Method Detail

closeback to summary
public void close()

Overrides org.apache.derby.impl.store.access.sort.SortScan.close.

Implements org.apache.derby.iapi.store.access.GenericScanController.close.

Close the scan.

See Also
org.apache.derby.iapi.store.access.ScanController#close
closeForEndTransactionback to summary
public boolean closeForEndTransaction(boolean closeHeldScan)

Implements org.apache.derby.iapi.store.access.conglomerate.ScanManager.closeForEndTransaction.

Close the scan.

Parameters
closeHeldScan:boolean

Doc from org.apache.derby.iapi.store.access.conglomerate.ScanManager.closeForEndTransaction.

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

Doc from org.apache.derby.iapi.store.access.conglomerate.ScanManager.closeForEndTransaction.

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.

nextback to summary
public boolean next() throws StandardException

Implements org.apache.derby.iapi.store.access.ScanController.next, org.apache.derby.iapi.store.access.GroupFetchScanController.next.

Move to the next position in the scan.

Returns:boolean

Doc from org.apache.derby.iapi.store.access.ScanController.next.

True if there is a next position in the scan, false if there isn't.

Exceptions
StandardException:

Doc from org.apache.derby.iapi.store.access.ScanController.next.

Standard exception policy.

See Also
org.apache.derby.iapi.store.access.ScanController#next