public class TestIndexSegmentAddressManager extends AbstractBTreeTestCase
IndexSegmentStore
.IndexSegment
,
IndexSegmentBuilder
,
IndexSegmentStore
TestCase2.MyProperties, TestCase2.RandomType
keyBuilder, log, r
_randomType
Constructor and Description |
---|
TestIndexSegmentAddressManager() |
TestIndexSegmentAddressManager(String name) |
Modifier and Type | Method and Description |
---|---|
protected static void |
doRoundTripTest(IndexSegmentRegion region,
int nbytes,
long offset,
long expectedOffset,
IndexSegmentAddressManager am)
Test helper forms an encoded address whose offset is relative to the
specified region and then attempts to decode that address.
|
void |
test_addressManager_decode()
Test of correct decoding of addresses by the
IndexSegmentAddressManager . |
void |
test_bitMath()
Test works through the basic operations required to encode and decode
an address for a node and a leaf.
|
void |
test_encodeDecode_offsetZero()
Unit test verifies that an offset of
0L (not a full
address, just an offset) is correctly encoded and decoded. |
void |
test_regionEnum_encodeDecode()
Test encoding and decoding of the region code and the offset.
|
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 TestIndexSegmentAddressManager()
public TestIndexSegmentAddressManager(String name)
name
- public void test_bitMath()
IndexSegmentRegion
public void test_regionEnum_encodeDecode()
public void test_encodeDecode_offsetZero()
0L
(not a full
address, just an offset) is correctly encoded and decoded.public void test_addressManager_decode()
IndexSegmentAddressManager
.protected static void doRoundTripTest(IndexSegmentRegion region, int nbytes, long offset, long expectedOffset, IndexSegmentAddressManager am)
region
- The region.nbytes
- The #of bytes in the addressed record.offset
- The offset of the addressed record (relative to the start of
the region).am
- The object used to decode the address.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.