incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius" <dbros...@mebigfatguy.com>
Subject Re: java thrift error
Date Tue, 20 Dec 2011 21:03:50 GMT
A ByteBuffer is not a byte[] to convert a String to a ByteBuffer do something likepublic static
ByteBuffer toByteBuffer(String value) 
    throws UnsupportedEncodingException
    {
        return ByteBuffer.wrap(value.getBytes(&quot;UTF-8&quot;));
    } see http://wiki.apache.org/cassandra/ThriftExamples ----- Original Message -----From:
&quot;A J&quot; >;s5alye@gmail.com
Mime
View raw message