Top Description Methods
org.apache.derby.iapi.store.access.conglomerate

public Interface Sort

Known Direct Implementers
org.apache.derby.impl.store.access.sort.MergeSort
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.store.access.conglomerate.TransactionManager, .ScanManager, org.apache.derby.iapi.store.access.ScanController, .SortController, .TransactionController

The sort interface corresponds to an instance of an in-progress sort. Sorts are not persistent.

Method Summary

Modifier and TypeMethod and Description
public void
drop(TransactionController tran)

Drop the sort - this means release all its resources.

public SortController
open(TransactionManager tran)

Open a sort controller.

public ScanControllerRowSource
openSortRowSource(TransactionManager tran)

Open a row Source to get rows out of the sorter.

public ScanManager
openSortScan(TransactionManager tran, boolean hold)

Open a scan controller.

Method Detail

dropback to summary
public void drop(TransactionController tran) throws StandardException

Drop the sort - this means release all its resources.

Note

drop is like close, it has to be tolerant of being called more than once, it must succeed or at least not throw any exceptions.

openback to summary
public SortController open(TransactionManager tran) throws StandardException

Open a sort controller.

The sort may have been dropped already, in which case this method should thrown an exception.

Exceptions
StandardException:
Standard exception policy.
openSortRowSourceback to summary
public ScanControllerRowSource openSortRowSource(TransactionManager tran) throws StandardException

Open a row Source to get rows out of the sorter.

The sort may have been dropped already, in which case this method should thrown an exception.

Exceptions
StandardException:
Standard exception policy.
openSortScanback to summary
public ScanManager openSortScan(TransactionManager tran, boolean hold) throws StandardException

Open a scan controller.

The sort may have been dropped already, in which case this method should thrown an exception.

Exceptions
StandardException:
Standard exception policy.