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
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
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
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
>> > "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
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
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
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
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
19 matches
Mail list logo