incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Blower <cblo...@barracuda.com>
Subject Re: Row_key from sstable2json to actual value of the key
Date Thu, 03 Apr 2014 18:06:22 GMT
Hey ng,

You can use CQL and Cassandra do the conversion if you would like. If
your table uses int type keys:
> select * from tomcat.tx where c1 = blobAsInt(0x00000021);

The relevant section of the CQL3 docs are here:
http://cassandra.apache.org/doc/cql3/CQL.html#blobFun

You can use blobAs... for any type. I hope this help.


On 04/03/2014 08:50 AM, ng wrote:
> sstable2json tomcat-t5-ic-1-Data.db -e
> gives me
>  
> 00000021
> 0000001f
> 00000020
>  
>  
> How do I convert this (hex) to actual value of column so I can do below
>  
> select * from tomcat.t5 where c1='concerted value';
>  
> Thanks in advance for the help.
>


-- 
*Colin Blower*
/Software Engineer/
Barracuda Networks Inc.
+1 408-342-5576 (o)

===========================================================

Find out how eSigning generates significant financial benefit.
Read the Barracuda SignNow ROI whitepaper at https://signnow.com/l/business/esignature_roi

Mime
View raw message