Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> HBase thrift API - Mutation store a float in a column


Copy link to this message
-
Re: HBase thrift API - Mutation store a float in a column
Nicolas:
I think Java client should be able to read this float - after conversion.

Cheers

On Fri, May 3, 2013 at 6:58 AM, Nicolas Seyvet
<[EMAIL PROTECTED]>wrote:

> 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?
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB