|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.eigenbase.test.DiffTestCase net.sf.farrago.test.ResultSetTestCase net.sf.farrago.test.FarragoTestCase net.sf.farrago.test.regression.FarragoSorterTest
public class FarragoSorterTest
FarragoSorterTest tests the sorter with various data sizes and distributions (TODO: and types).
Nested Class Summary | |
---|---|
private static class |
FarragoSorterTest.DistributionGenerator
|
private static class |
FarragoSorterTest.RampDistributionGenerator
|
private static class |
FarragoSorterTest.UniformDistributionGenerator
|
Nested classes/interfaces inherited from class net.sf.farrago.test.FarragoTestCase |
---|
FarragoTestCase.Cleanup, FarragoTestCase.CleanupFactory |
Field Summary | |
---|---|
private static long |
DUP_FACTOR
Ratio of record count to value range for duplicate-heavy sort. |
private static long |
EXTERNAL_SCALE_FACTOR
Ratio of data sort size to cache size for external sort. |
private static long |
externalCount
|
private static long |
IN_MEM_COUNT
Number of records to generate for in-memory sort. |
private static long |
SPARSE_FACTOR
Ratio of value range to record count for sparse sort. |
private static File |
testdataDir
|
Fields inherited from class net.sf.farrago.test.FarragoTestCase |
---|
allocOwner, connection, preparedStmt, repos, stmt, tracer |
Fields inherited from class net.sf.farrago.test.ResultSetTestCase |
---|
resultSet |
Fields inherited from class org.eigenbase.test.DiffTestCase |
---|
logFile, logOutputStream, refFile |
Constructor Summary | |
---|---|
FarragoSorterTest(String testName)
|
Method Summary | |
---|---|
void |
_testExternalSparse()
Tests an external sort with mostly distinct values. |
private static void |
computeExternalCount()
|
private void |
createForeignTable()
|
private static void |
initializeDataDir()
|
static void |
staticSetUp()
|
static Test |
suite()
|
private void |
testDistribution(FarragoSorterTest.DistributionGenerator gen)
|
void |
testInMemoryDegenerate()
Tests an in-memory sort with all values the same. |
void |
testInMemoryDups()
Tests an in-memory sort with many duplicate values. |
void |
testInMemoryPresortedDups()
Tests an in-memory sort with duplicate values already sorted. |
void |
testInMemoryPresortedDupsReverse()
Tests an in-memory sort with duplicate values already in reverse sort order. |
void |
testInMemoryPresortedSparse()
Tests an in-memory sort with sparse values already sorted. |
void |
testInMemoryPresortedSparseReverse()
Tests an in-memory sort with sparse values already in reverse sort order. |
void |
testInMemorySparse()
Tests an in-memory sort with mostly distinct values. |
Methods inherited from class net.sf.farrago.test.FarragoTestCase |
---|
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, setUp, shouldDiff, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite |
Methods inherited from class net.sf.farrago.test.ResultSetTestCase |
---|
compareResultList, compareResultLists, compareResultSet, compareResultSetWithDelta, compareResultSetWithPattern, getResultSetCount |
Methods inherited from class org.eigenbase.test.DiffTestCase |
---|
addDiffMask, addIgnorePattern, diffFile, diffLines, diffTestLog, fileContents, openTestLog, openTestLogOutputStream, setGC, setVerbose |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static File testdataDir
private static long externalCount
private static final long IN_MEM_COUNT
private static final long SPARSE_FACTOR
private static final long DUP_FACTOR
private static final long EXTERNAL_SCALE_FACTOR
Constructor Detail |
---|
public FarragoSorterTest(String testName) throws Exception
Exception
Method Detail |
---|
public static Test suite()
public static void staticSetUp() throws Exception
Exception
private static void initializeDataDir()
private void createForeignTable() throws Exception
Exception
private static void computeExternalCount()
private void testDistribution(FarragoSorterTest.DistributionGenerator gen) throws Exception
Exception
public void testInMemorySparse() throws Exception
Exception
public void testInMemoryDups() throws Exception
Exception
public void testInMemoryDegenerate() throws Exception
Exception
public void testInMemoryPresortedSparse() throws Exception
Exception
public void testInMemoryPresortedDups() throws Exception
Exception
public void testInMemoryPresortedSparseReverse() throws Exception
Exception
public void testInMemoryPresortedDupsReverse() throws Exception
Exception
public void _testExternalSparse() throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |