RE: CRUD test

2010-07-26 Thread Peter Minearo
uot;, new ColumnParent("Super2"), slicePredicate, ConsistencyLevel.ALL); Or is there a different way to find everything under a SuperColumn Family? -Original Message- From: Jonathan Shook [mailto:jsh...@gmail.com] Sent: Saturday, July 24, 2010 11:27 PM To: user@cassandra.apache.org S

Re: CRUD test

2010-07-24 Thread Jonathan Shook
tCurrentMillis()), and increment it artificially when it would return the same value twice in a row. It's a hack, but it works for my purposes. On Sun, Jul 25, 2010 at 12:54 AM, Oleg Tsvinev wrote: > Thank you guys for your help! > Yes, I am using System.currentTimeMillis() in my CRUD test. Even t

Re: CRUD test

2010-07-24 Thread Ran Tavory
b.com/rantav/hector/blob/master/src/main/java/me/prettyprint/cassandra/service/Keyspace.java#L236 ) On Sun, Jul 25, 2010 at 8:54 AM, Oleg Tsvinev wrote: > Thank you guys for your help! > > Yes, I am using System.currentTimeMillis() in my CRUD test. Even though I'm > still using

Re: CRUD test

2010-07-24 Thread Oleg Tsvinev
Thank you guys for your help! Yes, I am using System.currentTimeMillis() in my CRUD test. Even though I'm still using it my tests now run as expected. I do not use cassandra-cli anymore. @Ran great job on Hector, I wish there was more documentation but I managed. @Jonathan, what i

Re: CRUD test

2010-07-24 Thread Jonathan Shook
>> >                                  "hotel", >> >                                  cp2, >> >                                  System.currentTimeMillis(), >> >                                  ConsistencyLevel.ONE); >> > >> > >&

Re: CRUD test

2010-07-24 Thread Ran Tavory
cp2.setSuper_column("Econolodge".getBytes()); > > > >client.remove(KEYSPACE, > > "hotel", > > cp2, > > System.currentTimeMillis(), > >

Re: CRUD test

2010-07-23 Thread Jonathan Shook
       client.remove(KEYSPACE, >                                  "hotel", >                                  cp2, >                                  System.currentTimeMillis(), >                                  ConsistencyLevel.ONE); > > > -Original Message- > From: Peter Minearo [mailto:peter.mine...@r

RE: CRUD test

2010-07-23 Thread Peter Minearo
rom: Peter Minearo [mailto:peter.mine...@reardencommerce.com] Sent: Fri 7/23/2010 2:17 PM To: user@cassandra.apache.org Subject: RE: CRUD test CORRECTION: ColumnPath cp1 = new ColumnPath("Super2"); cp1.setSuper_column("Best Western".getBytes()); cp1.setColumn("na

RE: CRUD test

2010-07-23 Thread Peter Minearo
encyLevel.ALL); -Original Message- From: Peter Minearo [mailto:peter.mine...@reardencommerce.com] Sent: Friday, July 23, 2010 2:14 PM To: user@cassandra.apache.org Subject: RE: CRUD test Interesting!! Let me rephrase to make sure I understood what is going on: When Inserting data via

RE: CRUD test

2010-07-23 Thread Peter Minearo
tern".getBytes()); client.insert(KEYSPACE, "hotel", cp1, "Best Western of SF".getBytes(), System.currentTimeMillis(), ConsistencyLevel.ALL); -Original Message----- From: Jonathan Shook [mailto:jsh...@gmail.com] Sent: Friday, July 23, 2010 1:49 PM To: user@cassandra.apache.o

Re: CRUD test

2010-07-23 Thread Jonathan Shook
gt;                        Econolodge: {name: "Econolodge of SF"} >        } > } > > Are the CRUD Operations not referencing this correctly? > > > > -Original Message- > From: Jonathan Shook [mailto:jsh...@gmail.com] > Sent: Friday, July 23, 2010 1:

RE: CRUD test

2010-07-23 Thread Peter Minearo
al Message- From: Jonathan Shook [mailto:jsh...@gmail.com] Sent: Friday, July 23, 2010 1:34 PM To: user@cassandra.apache.org Subject: Re: CRUD test There seem to be data consistency bugs in the test. Are "name" and "hotel" being used in a pair-wise way? Specifically, the first

Re: CRUD test

2010-07-23 Thread Jonathan Shook
suggestion. Unfortunately, CRUD test still does not work for > me. Can you provide a simplest CRUD test possible that works? > On Fri, Jul 23, 2010 at 10:59 AM, Jonathan Shook wrote: >> >> I suspect that it is still your timestamps. >> You can verify this with a fake timesta

Re: CRUD test

2010-07-23 Thread Oleg Tsvinev
Johathan, I followed your suggestion. Unfortunately, CRUD test still does not work for me. Can you provide a simplest CRUD test possible that works? On Fri, Jul 23, 2010 at 10:59 AM, Jonathan Shook wrote: > I suspect that it is still your timestamps. > You can verify this with a fake tim

Re: CRUD test

2010-07-23 Thread Jonathan Shook
private void showSuperColumnInfo(SuperColumn superColumn) { >                System.out.println(" Super Columns ###"); >                System.out.println("Super Column Name = " + new > String(superColumn.getName())); >                List columnList = superColumn.getColumns();

RE: CRUD test

2010-07-22 Thread Peter Minearo
+ new String(column.getValue())); } System.out.println("- End Columns ---"); System.out.println("##"); } } -Original Message- From: Oleg Tsvinev [mail

Re: CRUD test

2010-07-22 Thread Oleg Tsvinev
Yes, and that was the issue. But now after I delete a row from cassandra-cli, I cannot insert anything back with my code. Insert code works does not throw any exceptions but when I read just inserted columns I get NotFoundException at the last line: client = borrowClient();

Re: CRUD test

2010-07-22 Thread Colin Vipurs
Have you checked the timestamp you're using for the subsequent inserts is higher than that used in the delete? On Thu, Jul 22, 2010 at 2:29 AM, Oleg Tsvinev wrote: > Hi there, > I'm trying to implement a simple CRUD service based on Cassandra. I use > Hector client. > While writing tests, I found

CRUD test

2010-07-21 Thread Oleg Tsvinev
Hi there, I'm trying to implement a simple CRUD service based on Cassandra. I use Hector client. While writing tests, I found out that if I create a few columns using API, then delete them from cassandra-cli and and re-create them using the same code (same key, etc), I can never get these new co