public class TestSplitJoinRootLeaf extends AbstractBTreeTestCase
for examples for split().
TestCase2.MyProperties, TestCase2.RandomType
keyBuilder, log, r
_randomType
Constructor and Description |
---|
TestSplitJoinRootLeaf() |
TestSplitJoinRootLeaf(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_splitJoinLeafBranchingFactor3_01()
A series of tests of the mechanisms for splitting and joining a leaf with
a branching factor of three (3).
|
void |
test_splitJoinLeafBranchingFactor3_02() |
void |
test_splitJoinLeafBranchingFactor3_03() |
void |
test_splitJoinLeafBranchingFactor3_04() |
void |
test_splitJoinLeafBranchingFactor4_01()
Note: with a branching factor greater than (3) it is possible for
AbstractNode.join() to trigger Leaf#redistributeKeys(Leaf) rather
than Leaf#merge(Leaf) . |
void |
test_splitJoinLeafBranchingFactor4_02()
This test triggers the redistribution of a key from (a) to (b).
|
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, 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, getProperties, 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 TestSplitJoinRootLeaf()
public TestSplitJoinRootLeaf(String name)
name
- public void test_splitJoinLeafBranchingFactor3_01()
AbstractNode.join()
always triggers Leaf#merge(Leaf)
. This is
not true when the branching factor is higher than three (3).Leaf#getSplitIndex(int)
,
Leaf.split()
,
AbstractNode.join()
,
Leaf#merge(Leaf)
,
Leaf#redistributeKeys(Leaf)
,
Node.getIndexOf(AbstractNode)
public void test_splitJoinLeafBranchingFactor3_02()
public void test_splitJoinLeafBranchingFactor3_03()
public void test_splitJoinLeafBranchingFactor3_04()
public void test_splitJoinLeafBranchingFactor4_01()
AbstractNode.join()
to trigger Leaf#redistributeKeys(Leaf)
rather
than Leaf#merge(Leaf)
. Since we tested Leaf#merge(Leaf)
for m := 3, we focus on testing Leaf#redistributeKeys(Leaf)
with
m := 4.
This test triggers the redistribution of a key from (b) to (a).public void test_splitJoinLeafBranchingFactor4_02()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.