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
ConsistencyLevel.ONE);
>> >> >
>> >> > ColumnPath cp2 = new ColumnPath("Super2");
>> >> > cp2.setSuper_column("Econolodge".getBytes());
>> >> >
>> >> > cli
>> >> >
>> >> > ColumnPath cp2 = new ColumnPath("Super2");
>> >> >cp2.setSuper_column("Econolodge".getBytes());
>> >> >
>> >> >client.remove(KEYSPACE,
>> >> >
t; >cp2.setSuper_column("Econolodge".getBytes());
> >> >
> >> >client.remove(KEYSPACE,
> >> > "hotel",
> >> >
>> > "hotel",
>> > cp2,
>> > System.currentTimeMillis(),
>> > ConsistencyLevel.ONE);
>> >
>> >
>&
cp2.setSuper_column("Econolodge".getBytes());
> >
> >client.remove(KEYSPACE,
> > "hotel",
> > cp2,
> > System.currentTimeMillis(),
> >
client.remove(KEYSPACE,
> "hotel",
> cp2,
> System.currentTimeMillis(),
> ConsistencyLevel.ONE);
>
>
> -Original Message-----
> From: Peter Minearo [mailto:peter.mine...@r
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
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
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
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:
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
for (ColumnOrSuperColumn cosc: coscList) {
>> >
>> > if (cosc == null) {
>> > System.out.println("NULL RETURN VALUE");
>> > }
>> >
>> >
rColumn == null) {
> >System.out.println("Super Column is
> NULL");
> >}
> >else {
> >showSuperColumnInfo(superColumn);
> >}
> >
> >}
> >
private void showSuperColumnInfo(SuperColumn superColumn) {
> System.out.println(" Super Columns ###");
> System.out.println("Super Column Name = " + new
> String(superColumn.getName()));
> List columnList = superColumn.getColumns();
+ new
String(column.getValue()));
}
System.out.println("----- End Columns ---");
System.out.println("##");
}
}
-Original Message-
From: Oleg Tsvinev [mail
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();
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
18 matches
Mail list logo