Aerospike Batch read api takes an array of sets as input like this:
final Key[] keys1 = new Key[3];
keys1[0] = new Key(config.getNamespace(), config.getSetName(1)), key);
keys1[1] = new Key(config.getNamespace(), config.getSetName(2)), key);
keys1[2] = new Key(config.getNamespace(), config.getSetName(3)), key);
And returns response as a array of records (Record[3]), with elements from the same set in the recordList in correct order if all 3 sets contain the key.
If one of the sets doesn’t have the key present, then I get a response as Record[2] and no way to tie the elements to the originating set.
Is there a way around this? My sets are grouped hourly/daily. I want to make only one call to aerospike, and be able to distinguish data between sets.