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
               ConsistencyLevel.ONE); >> >> > >> >> >                ColumnPath cp2 = new ColumnPath("Super2"); >> >> >                cp2.setSuper_column("Econolodge".getBytes()); >> >> > >> >> >                cli

Re: CRUD test

2010-07-24 Thread Ran Tavory
>> >> > >> >> > ColumnPath cp2 = new ColumnPath("Super2"); >> >> >cp2.setSuper_column("Econolodge".getBytes()); >> >> > >> >> >client.remove(KEYSPACE, >> >> >

Re: CRUD test

2010-07-24 Thread Oleg Tsvinev
t; >cp2.setSuper_column("Econolodge".getBytes()); > >> > > >> >client.remove(KEYSPACE, > >> > "hotel", > >> >

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
               for (ColumnOrSuperColumn cosc: coscList) { >> > >> >                        if (cosc == null) { >> >                                System.out.println("NULL RETURN VALUE"); >> >                        } >> > >> >              

Re: CRUD test

2010-07-23 Thread Oleg Tsvinev
rColumn == null) { > >System.out.println("Super Column is > NULL"); > >} > >else { > >showSuperColumnInfo(superColumn); > >} > > > >} > >

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