// create indexed map (keySet/valueSet)
if (testStore.isOrdered()) {
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);
valueSet = new StoredSortedValueSet(index, valueBinding, true);
}
keySet = new StoredSortedKeySet(index, keyBinding, true);
} else {
if (isEntityBinding) {
map = new StoredMap(index, keyBinding, entityBinding, true);