public class TestSparseRowStore extends ProxyTestCase<IIndexManager> implements IRowStoreConstants
SparseRowStore
.
Note: A lot of the pragmatic tests are being done by the
BigdataFileSystem
which uses the SparseRowStore
for its file
metadata index.
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
AUTO_TIMESTAMP, AUTO_TIMESTAMP_UNIQUE, CURRENT_ROW, MAX_TIMESTAMP, MIN_TIMESTAMP
Constructor and Description |
---|
TestSparseRowStore() |
TestSparseRowStore(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertSameValues(Map<String,Object> expected,
Map<String,Object> actual)
Verify that two rows have the same column values.
|
protected IIndex |
getIndex(IIndexManager store) |
void |
test_autoInc()
Test of auto-increment behavior.
|
void |
test_loadCSV()
Test using a utility class to load CSV data into a
SparseRowStore . |
void |
test_read_correctRejection()
Test of correct rejection of illegal parameters for logical row read
operations.
|
void |
test_read_noSuchRow()
Test that a read for a row that does not exist returns
null . |
void |
test_readWrite()
Simple test of write and read back of logical rows.
|
void |
test_rowScan_continuationQuery_fixedLengthPrimaryKey()
Test of a logical row scan requiring continuation queries by forcing the
capacity to 1 when there are in fact two logical rows.
|
void |
test_rowScan_continuationQuery_variableLengthPrimaryKey()
Test of a logical row scan requiring continuation queries by forcing the
capacity to 1 when there are in fact two logical rows.
|
void |
test_rowScan_withKeyRange()
Test of a logical row scan using a key range limit.
|
void |
test_rowScan()
Test of a logical row scan.
|
void |
test_timestampSemantics()
Test the semantics of timestamps associated with property values by
atomic row writes.
|
void |
test_writeWithPrecondition()
Test of
IPrecondition handling for atomic writes. |
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDown
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
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 TestSparseRowStore()
public TestSparseRowStore(String name)
name
- protected IIndex getIndex(IIndexManager store)
public void test_loadCSV() throws IOException
SparseRowStore
.IOException
public void test_read_noSuchRow()
null
.public void test_read_correctRejection()
public void test_readWrite()
public void test_timestampSemantics()
Each row write is assigned a timestamp and the property values written in that atomic operation all get the assigned timestamp. The same value may be overwritten and the new version is always the one with the most current timestamp.
This verifies ... FIXME javadoc
public void test_writeWithPrecondition()
IPrecondition
handling for atomic writes.public void test_autoInc()
public void test_rowScan()
public void test_rowScan_withKeyRange()
public void test_rowScan_continuationQuery_fixedLengthPrimaryKey()
public void test_rowScan_continuationQuery_variableLengthPrimaryKey()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.