public abstract class MultiWriteKeyColumnValueStoreTest extends AbstractKCVSTest
| Modifier and Type | Field and Description |
|---|---|
KeyColumnValueStoreManager |
manager |
protected String |
storeName1 |
protected String |
storeName2 |
StoreTransaction |
tx |
times| Constructor and Description |
|---|
MultiWriteKeyColumnValueStoreTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyChanges(Map<StaticBuffer,KCVEntryMutation> changes,
KCVSCache store,
StoreTransaction tx) |
int |
checkThatDeletionsApplied(Map<StaticBuffer,KCVEntryMutation> changes,
KeyColumnValueStore store,
int round) |
int |
checkThatStateExistsInStore(Map<StaticBuffer,Map<StaticBuffer,StaticBuffer>> state,
KeyColumnValueStore store,
int round) |
void |
clopen() |
void |
close() |
void |
deletionsAppliedBeforeAdditions() |
void |
mutateManyStressTest() |
protected void |
mutateManyStressTestWithVariableRounds() |
void |
mutateManyWritesSameKeyOnMultipleCFs() |
Map<StaticBuffer,KCVEntryMutation> |
mutateState(Map<StaticBuffer,Map<StaticBuffer,StaticBuffer>> state,
int maxDeletionCount,
int additionCount)
Change the supplied
state with a pseudorandom number generator. |
void |
newTx() |
void |
open() |
abstract KeyColumnValueStoreManager |
openStorageManager() |
void |
setUp() |
void |
tearDown() |
getConsistentTxConfig, getTxConfigprotected final String storeName1
protected final String storeName2
public KeyColumnValueStoreManager manager
public StoreTransaction tx
public abstract KeyColumnValueStoreManager openStorageManager() throws BackendException
BackendExceptionpublic void open()
throws BackendException
BackendExceptionpublic void close()
throws BackendException
BackendExceptionpublic void clopen()
throws BackendException
BackendExceptionpublic void newTx()
throws BackendException
BackendException@Test
public void deletionsAppliedBeforeAdditions()
throws BackendException
BackendException@Test
public void mutateManyWritesSameKeyOnMultipleCFs()
throws BackendException
BackendException@Test
public void mutateManyStressTest()
throws BackendException
BackendExceptionprotected void mutateManyStressTestWithVariableRounds()
throws BackendException
BackendExceptionpublic void applyChanges(Map<StaticBuffer,KCVEntryMutation> changes, KCVSCache store, StoreTransaction tx) throws BackendException
BackendExceptionpublic int checkThatStateExistsInStore(Map<StaticBuffer,Map<StaticBuffer,StaticBuffer>> state, KeyColumnValueStore store, int round) throws BackendException
BackendExceptionpublic int checkThatDeletionsApplied(Map<StaticBuffer,KCVEntryMutation> changes, KeyColumnValueStore store, int round) throws BackendException
BackendExceptionpublic Map<StaticBuffer,KCVEntryMutation> mutateState(Map<StaticBuffer,Map<StaticBuffer,StaticBuffer>> state, int maxDeletionCount, int additionCount)
state with a pseudorandom number generator.
This method removes min(maxDeletionCount, S) entries from the
maps in state.values(), where S is the sum of the sizes
of the maps in state.values(); this method then adds
additionCount pseudorandom entries spread across
state.values(), potentially adding new keys to state
since they are randomly generated. This method then returns a map of keys
to Mutations representing the changes it has made to state.
state - Maps keys -> columns -> valuesmaxDeletionCount - Remove at most this many entries from stateadditionCount - Add exactly this many entries to stateCopyright © 2012–2024. All rights reserved.