Java client API. Get all the bunkers in one go?
Instead of making multiple calls to the aerospik for each ldt bin , is there a way to make only one call and fetch all the bins?
eg.
Suppose the entry contains:
- BIN1
- BIN2
- bin3
- largelistBin1
- largeListBin2
- largeMapBin1
- largeMapBin2
Now, to get all the data I am committing, follow these steps:
- client.get(myPolicy, key)
- client.getLargeMap(myPolicy, key, largeMapBin1, null)
- myLargeMap1.scan()
- client.getLargeMap(myPolicy, key, largeMapBin2, null)
- myLargeMap2.scan()
- client.getLargeList(myPolicy, key, largeListBin1, null)
- myLargeList1.scan()
- client.getLargeList(myPolicy, key, largelistBin2, null)
- myLargeList2.scan()
Is there a better way?
+3
source to share