Hi, I am using UDFs and I have written a simple UDF to store value in a set. For example: value passed in input is 33, and I am just storing it in a set. Following is the code.
function write_aggregate(data, objectValue) if aerospike:exists(data) then debug("Data for record exists") else debug("Data for record do not exist") data.value = objectValue aerospike:create(data) end end
When I am trying to fetch the value of this key via Java client then I get the type of the key “value” depending upon the input I have passed. Example: If input passed in UDF function was 33 or 33.0, then the type is long If input passed in UDF function was 33.20, then type is double
I want to have a defined type for my key. How can I achieve it? Thanks for the help in advance