public abstract class AbstractEmbeddedFederationTestCase extends AbstractBTreeTestCase
TestLDS to
be proxy test suites so that I can run tests against both with ease and make
use of them for testing the FullTextIndex and
BigdataFileSystem.TestCase2.MyProperties, TestCase2.RandomType| Modifier and Type | Field and Description |
|---|---|
protected IBigdataClient<?> |
client |
protected IDataService |
dataService0 |
protected IDataService |
dataService1 |
protected IBigdataFederation<?> |
fed |
protected IMetadataService |
metadataService |
keyBuilder, log, r_randomType| Constructor and Description |
|---|
AbstractEmbeddedFederationTestCase() |
AbstractEmbeddedFederationTestCase(String arg0) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertEquals(byte[][] expected,
byte[][] actual)
Compares two byte[][]s for equality.
|
static void |
assertEquals(Split expected,
Split actual)
Verifies that two splits have the same data.
|
void |
assertEquals(String msg,
byte[][] expected,
byte[][] actual)
Compares two byte[][]s for equality.
|
protected void |
assertIndexRegistered(IDataService dataService,
String name,
UUID indexUUID)
Verify that a named index is registered on a specific
DataService
with the specified indexUUID. |
protected long |
awaitAsynchronousOverflow(IDataService dataService,
long priorOverflowCounter)
Waits until the asynchronous overflow counter has been incremented,
indicating that overflow processing has occurred and that post-processing
for the overflow event is complete.
|
protected int |
getPartitionCount(String name)
Return the #of index partitions in a scale-out index.
|
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
setUp()
Data files are placed into a directory named by the test.
|
void |
tearDown() |
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, toStringprotected IBigdataClient<?> client
protected IBigdataFederation<?> fed
protected IMetadataService metadataService
protected IDataService dataService0
protected IDataService dataService1
public AbstractEmbeddedFederationTestCase()
public AbstractEmbeddedFederationTestCase(String arg0)
arg0 - 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 void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic static final void assertEquals(Split expected, Split actual)
expected - actual - protected final void assertIndexRegistered(IDataService dataService, String name, UUID indexUUID) throws Exception
DataService
with the specified indexUUID.dataService - The data service.name - The index name.indexUUID - The unique identifier assigned to all instances of that index.Exceptionpublic final void assertEquals(byte[][] expected,
byte[][] actual)
expected - actual - public final void assertEquals(String msg, byte[][] expected, byte[][] actual)
expected - actual - protected long awaitAsynchronousOverflow(IDataService dataService, long priorOverflowCounter) throws IOException
Note: Normally you use bring the data service to the brink of the desired
overflow event, note the current overflow counter using
IDataService.getAsynchronousOverflowCounter(), use
IDataService#forceOverflow() to set the forceOverflow flag, do
one more write to trigger group commit and overflow processing, and then
invoke this method to await the end of overflow post-processing.
dataService - The data service.priorOverflowCounter - IOExceptionprotected int getPartitionCount(String name)
Note: This uses an key range scan to count only the non-deleted index
partition entries (the MetadataIndex does not use delete markers
so a normal range count is exact).
name - The name of the scale-out index.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.