public class TestFixedLengthPrefixShardSplits extends AbstractTestSegSplitter
src/architecture/SplitMath.xls
AbstractTestSegSplitter.MockPartitionIdFactory, AbstractTestSegSplitter.RejectSplitsAfterKey
TestCase2.MyProperties, TestCase2.RandomType
acceptAllSplits, pidFactory, rejectAllSplits
_randomType, log
Constructor and Description |
---|
TestFixedLengthPrefixShardSplits() |
TestFixedLengthPrefixShardSplits(String name) |
Modifier and Type | Method and Description |
---|---|
protected BTree |
generateData(IJournal store,
String name,
int ntuples,
LocalPartitionMetadata pmd)
Register a
BTree against the journal, generate some data in the
specified key range, and commit the data. |
protected BTree |
generateSPOData(IJournal store,
int ntuples,
LocalPartitionMetadata pmd)
Register a
BTree against the journal, generate some data and
commit the data (the data corresponds to a simple triple index schema but
does not handle statement indices with variable length keys). |
void |
test_split_applicationConstraint_nbytePrefix()
Unit test for the logic handling application constraints on the choice of
the separator key, which can also change the #of splits which may be
generated from a given input B+Tree.
|
doBuild, getStore
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 TestFixedLengthPrefixShardSplits()
public TestFixedLengthPrefixShardSplits(String name)
name
- protected BTree generateData(IJournal store, String name, int ntuples, LocalPartitionMetadata pmd)
BTree
against the journal, generate some data in the
specified key range, and commit the data.
Note: this uses int values to generate the keys. If you specify the fromKey as anything other than an empty byte[] or the toKey as anything other than null then the key must be at least 4 bytes long and the 1st 4 bytes will be decoded as an integer.
store
- ntuples
- pmd
- protected BTree generateSPOData(IJournal store, int ntuples, LocalPartitionMetadata pmd)
BTree
against the journal, generate some data and
commit the data (the data corresponds to a simple triple index schema but
does not handle statement indices with variable length keys).store
- ntuples
- pmd
- splitHandler
- public void test_split_applicationConstraint_nbytePrefix() throws Exception
FixedLengthPrefixSplits
constraint.Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.