Optimized way for querying using aerospike client for javay

This is cross posted on Stack Overflow, and I’ve answered your question over there.