Column (byte[], byte[], long) - error in compilation and inserting

2011-04-29 Thread L Mckay
I'm getting a compilation error in the latest Cassandra library when I try to 
insert data programatically using Java. 
 
using version 0.6.13 of the library
Is there a new Column definition in the Column.java  or the jar file for 
version 
 
Do you have any complete examples in java that are working to add column 
families, in add, update, delete, and remove?
There also seems to be a mismatch when using a "long" datatype instead of the 
"clock" when defining a new Column(byte[], byte[], timestamp).
 
 
 
 
Thanks for your consideration and time.

update: Column (byte[], byte[], long) - error in compilation and inserting

2011-04-29 Thread L Mckay
 
long ts = System.currentTimeMillis();
           ColumnPath colPathName = new ColumnPath(casKeyFam);

           byte[] myname = "name".getBytes() ;
           byte[] myval = "Reggie".getBytes();

    Column nameCol = new Column(myname, myval, ts); - the java compiler 
does not like this. There is an older client that likes the "Clock" parameter 
instead, but there's a different library.
 
Do you need more information?

 

From: Jonathan Ellis 
To: u...@cassandra.apache.org; L Mckay 
Sent: Friday, April 29, 2011 5:10 PM
Subject: Re: Column (byte[], byte[], long) - error in compilation and inserting

[moving to user list]

It's not clear to me what "the library" is that you're using or what
Cassandra version you're trying to talk to.

I'd recommend using the latest Hector 0.7 version, with Cassandra 0.7.5.

On Fri, Apr 29, 2011 at 3:59 PM, L Mckay  wrote:
> I'm getting a compilation error in the latest Cassandra library when I try to 
> insert data programatically using Java.
>
> using version 0.6.13 of the library
> Is there a new Column definition in the Column.java  or the jar file for 
> version
>
> Do you have any complete examples in java that are working to add column 
> families, in add, update, delete, and remove?
> There also seems to be a mismatch when using a "long" datatype instead of the 
> "clock" when defining a new Column(byte[], byte[], timestamp).
>
>
>
>
> Thanks for your consideration and time.



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com