cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <mail.list.steel.men...@gmail.com>
Subject ??: how to transfer large data?
Date Wed, 16 Dec 2009 04:36:10 GMT
As far as I know, std::string can deal with "string with unprintable char in
body", aka "binary"

#include <string>
#include <cstdio>
int main()
{
        std::string test;
        test.append("this");
        printf("length of test is %u\n",test.length());
        test.push_back('0');
        test.push_back('0');
        test.push_back('0');
        printf("length of test is %u\n",test.length());
}

length of test is 4
length of test is 7



-----????-----
???: Jonathan Ellis [mailto:jbellis@gmail.com] 
????: 2009?12?15? 21:27
???: cassandra-user@incubator.apache.org
??: Re: how to transfer large data?

really, "binary" to thrift C++ is std::string?

that doesn't make much sense to me, but I don't know C++...

On Mon, Dec 14, 2009 at 11:16 PM, XL.Pan <pan_xiaolei@sina.com> wrote:
> hi,
> I want to use the Cassandra to store pictures(about 100k ~ 3M). I don't
know
> how to write the client, because I find the value's type in the Column
class
> is std::string.
> How can I deal with this?? My key type is int and value type is raw
> data(about 120K). Thanks! :-)
>
> 2009-12-15
> ________________________________
> XL.Pan


Mime
View raw message