| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
testService |
protected boolean |
verbose
Set this to print out the rows that are inserted into
and returned from each sort.
|
out, shortModuleToTestName, startParams| Constructor and Description |
|---|
T_SortController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getModuleToTestProtocolName()
Get the name of the protocol for the module to test.
|
private T_AccessRow[] |
getSortDescendingInput() |
protected int |
runEachTest(org.apache.derby.iapi.store.access.AccessFactory store,
java.lang.String tail) |
protected void |
runTests()
Run the test.
|
private void |
setSortBufferSize(java.lang.String buf_length) |
(package private) boolean |
sortAllDuplicates(org.apache.derby.iapi.store.access.TransactionController tc)
Test a sort where all the rows are duplicates
|
(package private) boolean |
sortBoundaries(org.apache.derby.iapi.store.access.TransactionController tc)
Test a sorts with one or zero rows.
|
(package private) boolean |
sortBufferCoverage(org.apache.derby.iapi.store.access.TransactionController tc)
This test covers specific code paths in the external sort's
sort buffer.
|
(package private) boolean |
sortDescending(org.apache.derby.iapi.store.access.TransactionController tc)
Test a sort where we have some ascending and descending keys.
|
(package private) boolean |
sortExample(org.apache.derby.iapi.store.access.TransactionController tc)
This test is more of an example, with lots of comments to
explain what's going on.
|
(package private) boolean |
testSort(org.apache.derby.iapi.store.access.TransactionController tc,
T_AccessRow[] in,
T_AccessRow[] outrow,
long sortid)
Insert the given rows into the given sort, and check that the
rows retrieved from the sort match the output rows.
|
boot, Execute, FAIL, PASS, REPORT, stop, UnitTestDuration, UnitTestTypeprivate static final java.lang.String testService
protected boolean verbose
public java.lang.String getModuleToTestProtocolName()
T_GenericgetModuleToTestProtocolName in class T_Genericprivate void setSortBufferSize(java.lang.String buf_length)
protected void runTests()
throws T_Fail
T_Genericprotected int runEachTest(org.apache.derby.iapi.store.access.AccessFactory store,
java.lang.String tail)
throws T_Fail,
org.apache.derby.iapi.error.StandardException
T_Failorg.apache.derby.iapi.error.StandardExceptionboolean sortExample(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionboolean sortBufferCoverage(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionboolean sortBoundaries(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionboolean sortAllDuplicates(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionboolean sortDescending(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionprivate T_AccessRow[] getSortDescendingInput()
boolean testSort(org.apache.derby.iapi.store.access.TransactionController tc,
T_AccessRow[] in,
T_AccessRow[] outrow,
long sortid)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.