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 |
---|---|
private static java.lang.Object |
createPersistentService(java.lang.String factoryInterface,
java.lang.String serviceName,
java.util.Properties properties)
Privileged startup.
|
private static org.apache.derby.iapi.services.context.ContextService |
getContextService()
Privileged lookup of the ContextService.
|
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, UnitTestType
private static final java.lang.String testService
protected boolean verbose
public java.lang.String getModuleToTestProtocolName()
T_Generic
getModuleToTestProtocolName
in class T_Generic
private void setSortBufferSize(java.lang.String buf_length)
protected void runTests() throws T_Fail
T_Generic
protected int runEachTest(org.apache.derby.iapi.store.access.AccessFactory store, java.lang.String tail) throws T_Fail, org.apache.derby.iapi.error.StandardException
T_Fail
org.apache.derby.iapi.error.StandardException
boolean sortExample(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
boolean sortBufferCoverage(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
boolean sortBoundaries(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
boolean sortAllDuplicates(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
boolean sortDescending(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private 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.StandardException
private static org.apache.derby.iapi.services.context.ContextService getContextService()
private static java.lang.Object createPersistentService(java.lang.String factoryInterface, java.lang.String serviceName, java.util.Properties properties) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.