org.apache.derby.iapi.store.access
Interface SortController

All Known Implementing Classes:
MergeInserter

public interface SortController

A sort controller is an interface for inserting rows into a sort.

A sort is created with the createSort method of TransactionController. The rows are read back with a scan controller returned from the openSortScan method of TranscationController.

See Also:
TransactionController.openSort(long), ScanController

Method Summary
 void completedInserts()
          Inform SortController that all the rows have been inserted into it.
 SortInfo getSortInfo()
          Return SortInfo object which contains information about the current state of the sort.
 void insert(DataValueDescriptor[] row)
          Insert a row into the sort.
 

Method Detail

completedInserts

void completedInserts()
Inform SortController that all the rows have been inserted into it.


insert

void insert(DataValueDescriptor[] row)
            throws StandardException
Insert a row into the sort.

Parameters:
row - The row to insert into the SortController. The stored representations of the row's columns are copied into a new row somewhere in the sort.
Throws:
StandardException - Standard exception policy.

getSortInfo

SortInfo getSortInfo()
                     throws StandardException
Return SortInfo object which contains information about the current state of the sort.

Returns:
The SortInfo object which contains info about current sort.
Throws:
StandardException - Standard exception policy.
See Also:
SortInfo

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.