public class TestIndexSegmentWithBloomFilter extends AbstractBTreeTestCase
IndexSegment,
and then compares the performance and correctness of index point tests with
and without the use of the bloom filter.TestCase2.MyProperties, TestCase2.RandomTypekeyBuilder, log, r_randomType| Constructor and Description |
|---|
TestIndexSegmentWithBloomFilter() |
TestIndexSegmentWithBloomFilter(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doBloomFilterTest(String label,
IBloomFilter bloomFilter,
byte[][] keys)
Test the bloom filter for false negatives given the ground truth set of
keys.
|
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,
BloomFilterFactory bloomFilterFactory)
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
IndexSegments. |
void |
test_randomSparseKeys()
A stress test for building
IndexSegments. |
void |
test_rootLeaf()
Test when the input tree is a root leaf with three values.
|
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, useRawRecordsassertEquals, 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, logPropertiesassertEquals, 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, toStringpublic TestIndexSegmentWithBloomFilter()
public TestIndexSegmentWithBloomFilter(String name)
public Properties getProperties()
TestCase2Properties 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 TestCase2Properties 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, BloomFilterFactory bloomFilterFactory)
SimpleEntry
objects.branchingFactor - The branching factor.public void test_randomDenseKeys()
throws Exception
IndexSegments. A variety of
BTrees are built from dense random keys in [1:n] using a variety
of branching factors. For each BTree, a variety of
IndexSegments 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.Exceptionpublic void test_randomSparseKeys()
throws Exception
IndexSegments. A variety of
BTrees are built from spase random keys using a variety of
branching factors. For each BTree, a variety of
IndexSegments 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.Exceptionpublic void test_rootLeaf()
throws Exception
IOExceptionExceptionpublic void doBuildIndexSegmentAndCompare(BTree btree) throws Exception
btree - The source btree.Exceptionprotected void doBloomFilterTest(String label, IBloomFilter bloomFilter, byte[][] keys)
keys - The ground truth keys that were inserted into the bloom
filter.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.