void testIndexed()
throws Exception {
// create primary map
if (isEntityBinding) {
map = new StoredMap(store, keyBinding, entityBinding,
testStore.getKeyAssigner());
} else {
map = new StoredMap(store, keyBinding, valueBinding,
testStore.getKeyAssigner());
}
imap = map;
smap = null;
// create primary list
if (testStore.hasRecNumAccess()) {
if (isEntityBinding) {
list = new StoredList(store, entityBinding,
testStore.getKeyAssigner());
} else {
list = new StoredList(store, valueBinding,
testStore.getKeyAssigner());
}
ilist = list;
}
addAll();
readAll();
// create indexed map (keySet/valueSet)
if (testStore.areKeyRangesAllowed()) {
if (isEntityBinding) {
map = smap = new StoredSortedMap(index, keyBinding,
entityBinding, true);
valueSet = new StoredSortedValueSet(index, entityBinding,
true);
} else {
map = smap = new StoredSortedMap(index, keyBinding,
valueBinding, true);
// sorted value set is not possible since key cannot be derived
// for performing subSet, etc.
}
keySet = new StoredSortedKeySet(index, keyBinding, true);
} else {
if (isEntityBinding) {
map = new StoredMap(index, keyBinding, entityBinding, true);
valueSet = new StoredValueSet(index, entityBinding, true);
} else {
map = new StoredMap(index, keyBinding, valueBinding, true);
valueSet = new StoredValueSet(index, valueBinding, true);
}
smap = null;
keySet = new StoredKeySet(index, keyBinding, true);
}