public class TestIndexSegmentBuilderWithSmallTree extends AbstractIndexSegmentTestCase
src/architecture/btree.xls, which has the detailed examples.
TestCase2.MyProperties, TestCase2.RandomType
keyBuilder, log, r
_randomType
Constructor and Description |
---|
TestIndexSegmentBuilderWithSmallTree() |
TestIndexSegmentBuilderWithSmallTree(String name) |
Modifier and Type | Method and Description |
---|---|
protected IndexSegmentCheckpoint |
doBuildAndDiscardCache(BTree btree,
int m) |
BTree |
getProblem1()
Create, populate, and return a btree with a branching factor of (3) and
ten sequential keys [1:10].
|
BTree |
getProblem2()
Create, populate, and return a btree with a branching factor of (3) and
nine sequential keys [1:9].
|
BTree |
getProblem3()
Create, populate, and return a btree with a branching factor of (3) and
20 sequential keys [1:20].
|
void |
setUp() |
void |
tearDown() |
void |
test_buildOrder10()
This case results in a single root leaf filled to capacity.
|
void |
test_buildOrder3()
Test ability to build an index segment from a
BTree . |
void |
test_buildOrder9()
This case results in a root node and two leaves.
|
void |
test_problem2_buildOrder3()
This case results in a single root leaf filled to capacity.
|
void |
test_problem3_buildOrder3()
Note: This problem requires us to short a node in the level above the
leaves so that the last node in that level does not underflow.
|
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, 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, toString
public TestIndexSegmentBuilderWithSmallTree()
public TestIndexSegmentBuilderWithSmallTree(String name)
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public BTree getProblem1()
SimpleEntry
objects
whose state is the same as the corresponding key.src/architecture/btree.xls, which details this input tree and a
series of output trees with various branching factors.
public void test_buildOrder3() throws Exception
BTree
.Exception
public void test_buildOrder9() throws Exception
IOException
Exception
public void test_buildOrder10() throws Exception
IOException
Exception
public BTree getProblem2()
SimpleEntry
objects
whose state is the same as the corresponding key.src/architecture/btree.xls, which details this input tree and a
series of output trees with various branching factors.
public void test_problem2_buildOrder3() throws Exception
IOException
Exception
public BTree getProblem3()
SimpleEntry
objects whose state is the same as the
corresponding key.src/architecture/btree.xls, which details this input tree and a
series of output trees with various branching factors.
public void test_problem3_buildOrder3() throws Exception
IOException
Exception
protected IndexSegmentCheckpoint doBuildAndDiscardCache(BTree btree, int m) throws IOException, Exception
IOException
Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.