Hello,
I’m tryingo to create a primary Key query with java client.
If I have this set:
±—±-----------+ | id | name | ±—±-----------+ | 3 | “jose” | | 1 | “david” | | 2 | “luis” |
With PK equasl id field . I can do the next query in aql
select * from test.tabletest where PK = ‘1’
and aql shows me
| id | name | ±—±----------+ | 1 | “david” | ±—±----------+
I want to make the same with java. I had tryed to create a filter like this:
com.aerospike.client.query. Filter.equal(“PK”,“1”)); but when I am executing the nex method in aeropike recordSet the method throws the follow exception:
com.aerospike.client.AerospikeException: Error Code 204: Index error
Anybody can help me.
Thanks.