hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Seyvet <nicolas.sey...@ericsson.com>
Subject RE: HBase thrift API - Mutation store a float in a column
Date Fri, 03 May 2013 13:58:42 GMT
Hi,

Thanks Ted. 

I think you mean to use flip() in order to pre-dispose the buffer for read (ie a get). if
I use flip() after generating the ByteBuffer then my data gets to be stored in the row.

ByteBuffer buf = ByteBuffer.allocate(8); 

buf.putFloat(12f)
buf.flip();
mutation.setValue(buf);

works...

Is this value readable by something else than another Thrift client? For example can it be
read by a Java Native client as a float?

Mime
View raw message