(SOLVED) Create map with numeric key (using UDF\Lua)

,

How to create map with numeric key with aerospike’s map-interface ? There isn’t any example how to create map with numeric key.

Does it support via lua-script ?

Solved. I found a soulution.

Example

function addNumericMap(rec)

if (not aerospike:exists(rec)) then
    return "Record not exists"
end

local t = {}

for i = 1, 10 do
    t[i] = i
end

for i = 20, 30 do
    t[i] = i
end

rec["numericMap"] = map(t)

aerospike:update(rec)

end