I am trying to maintain a map of object id and List of Aerospike Keys where it is listed. But when I try to publish that to Aerospike I get following exception:
Caused by: java.io.NotSerializableException: com.aerospike.client.Key at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source)
Code being used:
Bin include = new Bin(CacheConstants.BIN_INCLUDE, idToKeysMap); client.put(new WritePolicy(), cacheKey, include);
idToKeysMap looks like:
How can we store this info into Aerospike?