public class TestPredicateAccessPath extends TestCase2
Predicate
. This unit
test works through the create and population of a test relation with some
data and verifies the ability to access that data using some different access
paths. This sets the ground for testing the evaluation of Predicate
s
with various constraints, filters, etc.
Note: Tests of remote access path reads are done in the context of a bigdata federation since there must be a data service in play for a remote access path.
Modifier and Type | Class and Description |
---|---|
protected class |
TestPredicateAccessPath.MockPipelineOp |
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestPredicateAccessPath() |
TestPredicateAccessPath(String name) |
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
setUp() |
void |
tearDown() |
void |
test_accessPathFilter()
Unit test for an
IPredicate.Annotations#ACCESS_PATH_FILTER . |
void |
test_indexLocalFilter()
Unit test for an
IPredicate.Annotations#INDEX_LOCAL_FILTER . |
void |
test_keyOrderSerializable() |
void |
test_nothingBound()
Using a predicate with nothing bound, verify that we get the
right range count on the relation and that we read the correct elements
from the relation.
|
void |
test_predicate_eval()
Verify lookup and read on an
IPredicate . |
void |
test_scan()
Using a predicate which binds the [name] position, verify that we get the
right range count on the relation and verify the actual element pulled
back from the access path.
|
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, 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, toString
public TestPredicateAccessPath()
public TestPredicateAccessPath(String name)
name
- public Properties getProperties()
TestCase2
Properties
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 TestCase2
Properties
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.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void test_keyOrderSerializable()
public void test_nothingBound()
public void test_scan()
public void test_predicate_eval()
IPredicate
.public void test_indexLocalFilter()
IPredicate.Annotations#INDEX_LOCAL_FILTER
.public void test_accessPathFilter()
IPredicate.Annotations#ACCESS_PATH_FILTER
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.