public class TestIndexSegmentBuilderWithLargeTrees extends AbstractIndexSegmentTestCase
IndexSegment
,
and then compares the trees for the same total ordering.TestCase2.MyProperties, TestCase2.RandomType
keyBuilder, log, r
_randomType
Constructor and Description |
---|
TestIndexSegmentBuilderWithLargeTrees() |
TestIndexSegmentBuilderWithLargeTrees(String name) |
Modifier and Type | Method and Description |
---|---|
void |
doBuildIndexSegmentAndCompare(BTree btree)
Test helper builds an index segment from the btree using several
different branching factors and each time compares the resulting total
ordering to the original btree.
|
BTree |
getBTree(int branchingFactor)
Return a
BTree backed by a journal with the indicated branching
factor. |
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
test_randomDenseKeys()
A stress test for building
IndexSegment s. |
void |
test_randomSparseKeys()
A stress test for building
IndexSegment s. |
dumpIndexSegment, testForwardScan, testMultiBlockIterator, testReverseScan
assertChildKeys, assertEntryCounts, assertKeys, assertKeys, assertKeys, assertSameAbstractNodeData, assertSameBTree, assertSameEntryIterator, assertSameEntryIterator, assertSameIterator, assertSameIterator, assertSameLeaf, assertSameLeafData, assertSameNode, assertSameNodeData, assertSameNodeOrLeaf, assertSameRaba, assertValues, assertValues, doEntryIteratorTest, doInsertKeySequenceTest, doInsertLookupRemoveStressTest, doInsertRandomKeySequenceTest, doInsertRandomKeySequenceTest, doInsertRandomSparseKeySequenceTest, doKnownKeySequenceTest, doRandomIndexOfTest, doRandomKeyInsertTest, doRandomLookupTest, doRemoveStructureStressTest, doSplitTest, doSplitWithDecreasingKeySequence, doSplitWithIncreasingKeySequence, doSplitWithRandomDenseKeySequence, getBTree, getKeysAndValues, getRandomKeys, getRandomKeyValues, i2k, nextLong, useRawRecords
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public TestIndexSegmentBuilderWithLargeTrees()
public TestIndexSegmentBuilderWithLargeTrees(String name)
public Properties getProperties()
TestCase2
Properties
object, then the lower levels of the
hierarchy are recursively searched.The hierarchy is constructed from the following properties files in the following order. The first property file in this list corresponds to the top of the property hierarchy. The last property file in this list corresponds to the bottom of the property hierarchy. The property resources are:
getProperties
in class TestCase2
Properties
object that supplies bindings for
property names according to the described hierarchy among
property resources. The returned Properties
is NOT
cached.
TODO This does not handle the recursive truncation of the
class name to search for "test.properties" yet.public BTree getBTree(int branchingFactor)
BTree
backed by a journal with the indicated branching
factor.
The caller MUST take responsibility for destroying the backing
Journal
. For example, doBuildIndexSegmentAndCompare(BTree)
does this after running a series of builds based on the returned BTree
. If
you do not close and destroy the backing journal then the thread pool will grow during
the test runs.getBTree
in class AbstractBTreeTestCase
branchingFactor
- The branching factor.public void test_randomDenseKeys() throws Exception
IndexSegment
s. A variety of
BTree
s are built from dense random keys in [1:n] using a variety
of branching factors. For each BTree
, a variety of
IndexSegment
s are built using a variety of output branching
factors. For each IndexSegment
, we then compare it against its
source BTree
for the same total ordering.Exception
public void test_randomSparseKeys() throws Exception
IndexSegment
s. A variety of
BTree
s are built from sparse random keys using a variety of
branching factors. For each BTree
, a variety of
IndexSegment
s are built using a variety of output branching
factors. For each IndexSegment
, we then compare it against its
source BTree
for the same total ordering.Exception
public void doBuildIndexSegmentAndCompare(BTree btree) throws Exception
btree
- The source btree.Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.