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() |
Map<StaticBuffer,KCVMutation> |
generateMutation(int keyCount,
int columnCount,
Map<StaticBuffer,KCVMutation> deleteFrom) |
void |
mutateManyStressTest() |
void |
mutateManyWritesSameKeyOnMultipleCFs() |
Map<StaticBuffer,KCVEntryMutation> |
mutateState(Map<StaticBuffer,Map<StaticBuffer,StaticBuffer>> state,
int maxDeletionCount,
int additionCount)
Pseudorandomly change the supplied
state. |
void |
newTx() |
void |
open() |
abstract KeyColumnValueStoreManager |
openStorageManager() |
void |
setUp() |
void |
tearDown() |
getConsistentTxConfig, getTxConfigprotected String storeName1
protected 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
BackendExceptionpublic void deletionsAppliedBeforeAdditions()
throws BackendException
BackendExceptionpublic void mutateManyWritesSameKeyOnMultipleCFs()
throws BackendException
BackendExceptionpublic void mutateManyStressTest()
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.
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 pseudorandomly generated 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 statepublic Map<StaticBuffer,KCVMutation> generateMutation(int keyCount, int columnCount, Map<StaticBuffer,KCVMutation> deleteFrom)
Copyright © 2012–2016. All rights reserved.