public class TestQueryEngine_Slice extends TestCase2
SliceOp in which a large number of small chunks are
fed into the query such that the concurrency constraints of the slice are
stress tested. PipelineOp.isSharedState() returns true so
each invocation of the same SliceOp operator instance should use the
same SliceOp.SliceStats object. This test will fail if that is not true.TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestQueryEngine_Slice() |
TestQueryEngine_Slice(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSliceTest(long offset,
long limit,
long timeout,
int ntrials,
int poolSize) |
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
protected ThickAsynchronousIterator<IBindingSet[]> |
newBindingSetIterator(IBindingSet[][] bindingSetChunks)
Return an
IAsynchronousIterator that will read a single, chunk
containing all of the specified IBindingSets. |
void |
setUp() |
void |
tearDown() |
void |
test_slice_threadSafe() |
void |
testStressThreadSafe() |
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, 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, toStringpublic TestQueryEngine_Slice()
public TestQueryEngine_Slice(String name)
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 void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected ThickAsynchronousIterator<IBindingSet[]> newBindingSetIterator(IBindingSet[][] bindingSetChunks)
IAsynchronousIterator that will read a single, chunk
containing all of the specified IBindingSets.bindingSetChunks - the chunks of binding sets.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.