cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L Mckay <>
Subject update: Column (byte[], byte[], long) - error in compilation and inserting
Date Fri, 29 Apr 2011 21:17:01 GMT
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:; 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  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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message