i getting bytebuffer of string e.g. 100 below
bytebuffer data = integerserializer.get().tobytebuffer(integer.parseint(data));
and inserting data column 'mycolumn'
during reading column 'mycolumn' value using :
public objct myfunction(bytebuffer data){ return integerserializer.get().frombytebuffer(data); }
but here getting following error if mention column 'mycolumn'
java.nio.bufferunderflowexception @ java.nio.buffer.nextgetindex(buffer.java:480) @ java.nio.heapbytebuffer.getint(heapbytebuffer.java:336) @ me.prettyprint.cassandra.serializers.integerserializer.frombytebuffer(integerserializer.java:35)
it similar this issue:
you want specify int32type not integertype. latter misnomer , represents biginteger.
Comments
Post a Comment