Hi, I am using aerospike KEY_ORDERED map for a usecase. When I am trying to get value of a key which does not exist in the map, I am getting “Error Code 4: Parameter error” error. Below is the code snippet
Key key = new Key(namespace, set, primarykey); Record record = client.operate(null, key, MapOperation.getByKey("data", Value.get(keyname), MapReturnType.VALUE));
However the same code works fine and returns null for unordered_map. Please let me know if I am missing something here. I want the KEY_ORDERED map to return a null value instead of the exception “Error Code 4: Parameter error”.
Thanks for the help in advance.