Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.store.access
Interface SortCostController  view SortCostController download SortCostController.java


public interface SortCostController


Method Summary
 void close()
          Close the controller.
 double getSortCost(org.apache.derby.iapi.types.DataValueDescriptor[] template, ColumnOrdering[] columnOrdering, boolean alreadyInOrder, long estimatedInputRows, long estimatedExportRows, int estimatedRowSize)
          Calculate the cost of a sort.
 

Method Detail

close

public void close()
Close the controller.

Close the open controller. This method always succeeds, and never throws any exceptions. Callers must not use the StoreCostController after closing it; they are strongly advised to clear out the StoreCostController reference after closing.


getSortCost

public double getSortCost(org.apache.derby.iapi.types.DataValueDescriptor[] template,
                          ColumnOrdering[] columnOrdering,
                          boolean alreadyInOrder,
                          long estimatedInputRows,
                          long estimatedExportRows,
                          int estimatedRowSize)
                   throws org.apache.derby.iapi.error.StandardException
Calculate the cost of a sort.

The cost of a sort includes the time spent in the sorter inserting the rows into the sort, and the time spent in the sorter returning the rows. Note that it does not include the cost of scanning the rows from the source table, for insert into the sort.

Arguments to getSortCost(), should be the same as those to be passed to TransactionController.createSort().