IntegerValue and LongValue in com.aerospike.client

Hello, everyone!

I’m working on Scala and using com.aerospike.client (which is “com.aerospike” % “aerospike-client” % “3.2.5”). But there is a problem with data type IntegerValue - I’m writing Integer in aerospike and then getting that value as java.lang.Long, which is wrong. Maybe I should write Int in some other way?

Hitting this problem as well. Record.getValue(binName) returns a Long for Integer bins. Looks like integers are being stored as long using 8 bytes. See Value.IntegerValue which at least in the client seems to be, e.g. writing 8 bytes into the buffer.