Is there any way to perform a multiple async get and get a result preserving the order of the provided keys?
For example:
List keys = Arrays.asList(“key:1”,“key:2”, “key:3”);
List documents = Observable
.from(keys)
.flatMap(new Func1<String, Observable>() {
@Override
public Observable call(String key) {
return getBucket().async().get(key);
}
})
.toList()
.toBlocking()
.single();
document results do not respect any order because it is populated asynchronously.