Querying a primary key through java client - Aerospike

Viewed 208

I'm trying to emulate the query Select * from namespace.set where pk="something" through aeropsike's java client. I know that we can query on a secondary index through "Filter", and create "PredExp" for other predicates, but I'm unable to figure out how we can query on a primary key. Any help would be appreciated. Thanks a lot in advance.

Edit : I have multiple bins in my set, if that makes any difference.

1 Answers
Related