org.apache.derby.iapi.store.access.conglomerate
Interface SortFactory

All Superinterfaces:
MethodFactory, ModuleSupportable
All Known Implementing Classes:
ExternalSortFactory

public interface SortFactory
extends MethodFactory

The factory interface for all sort access methods.


Field Summary
static java.lang.String MODULE
          Used to identify this interface when finding it with the Monitor.
 
Method Summary
 Sort createSort(TransactionController tran, int segment, java.util.Properties implParameters, DataValueDescriptor[] template, ColumnOrdering[] columnOrdering, SortObserver sortObserver, boolean alreadyInOrder, long estimatedRows, int estimatedRowSize)
          Create the sort and return a sort object for it.
 SortCostController openSortCostController()
          Return an open SortCostController.
 
Methods inherited from interface org.apache.derby.iapi.store.access.conglomerate.MethodFactory
defaultProperties, primaryFormat, primaryImplementationType, supportsFormat, supportsImplementation
 
Methods inherited from interface org.apache.derby.iapi.services.monitor.ModuleSupportable
canSupport
 

Field Detail

MODULE

public static final java.lang.String MODULE
Used to identify this interface when finding it with the Monitor.

See Also:
Constant Field Values
Method Detail

createSort

public Sort createSort(TransactionController tran,
                       int segment,
                       java.util.Properties implParameters,
                       DataValueDescriptor[] template,
                       ColumnOrdering[] columnOrdering,
                       SortObserver sortObserver,
                       boolean alreadyInOrder,
                       long estimatedRows,
                       int estimatedRowSize)
                throws StandardException
Create the sort and return a sort object for it.

Throws:
StandardException - if the sort could not be opened for some reason, or if an error occurred in one of the lower level modules.

openSortCostController

public SortCostController openSortCostController()
                                          throws StandardException
Return an open SortCostController.

Return an open SortCostController which can be used to ask about the estimated costs of SortController() operations.

Returns:
The open StoreCostController.
Throws:
StandardException - Standard exception policy.
See Also:
StoreCostController


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.