You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by vicent roca daniel <sa...@gmail.com> on 2011/01/01 23:42:52 UTC

cassandra ruby undefined method

Hi guys, I'm new in this list && Cassandra :)

I'm playing with Cassandra with the ruby wrapper, and I can't figurate out
what's happing with this error...
I have this:

app = Cassandra.new('AOM', servers = "127.0.0.1:9160", :transport_wrapper =>
Thrift::FramedTransport)
app.insert(blahh)  --> works OK
app.get(blah) --> works OK

but..
app.get_slice() or get_count(), multiget_slice,etc...  this dont work.

ruby-1.9.2-p0 > app.get_slice()
NoMethodError: undefined method `get_slice' for #<Cassandra:0x1322c28>

ruby-1.9.2-p0 > app.get_slice()
NoMethodError: undefined method `get_slice' for #<Cassandra:0x1322c28>

I don't know what to try. I'm going nutch here :)


Thanks you for your help!

Re: cassandra ruby undefined method

Posted by vicent roca daniel <sa...@gmail.com>.
Sorry for this message. I realize that I was doing it wrong.

Thanks ryan.

On Mon, Jan 3, 2011 at 6:03 PM, Ryan King <ry...@twitter.com> wrote:

> On Sat, Jan 1, 2011 at 2:42 PM, vicent roca daniel <sa...@gmail.com>
> wrote:
> > Hi guys, I'm new in this list && Cassandra :)
> > I'm playing with Cassandra with the ruby wrapper, and I can't figurate
> out
> > what's happing with this error...
> > I have this:
> > app = Cassandra.new('AOM', servers = "127.0.0.1:9160",
> :transport_wrapper =>
> > Thrift::FramedTransport)
> > app.insert(blahh)  --> works OK
> > app.get(blah) --> works OK
> > but..
> > app.get_slice() or get_count(), multiget_slice,etc...  this dont work.
> > ruby-1.9.2-p0 > app.get_slice()
> > NoMethodError: undefined method `get_slice' for #<Cassandra:0x1322c28>
> > ruby-1.9.2-p0 > app.get_slice()
> > NoMethodError: undefined method `get_slice' for #<Cassandra:0x1322c28>
> > I don't know what to try. I'm going nutch here :)
>
> Have you read the README at https://github.com/fauna/cassandra/ ?
>
> -ryan
>

Re: cassandra ruby undefined method

Posted by Ryan King <ry...@twitter.com>.
On Sat, Jan 1, 2011 at 2:42 PM, vicent roca daniel <sa...@gmail.com> wrote:
> Hi guys, I'm new in this list && Cassandra :)
> I'm playing with Cassandra with the ruby wrapper, and I can't figurate out
> what's happing with this error...
> I have this:
> app = Cassandra.new('AOM', servers = "127.0.0.1:9160", :transport_wrapper =>
> Thrift::FramedTransport)
> app.insert(blahh)  --> works OK
> app.get(blah) --> works OK
> but..
> app.get_slice() or get_count(), multiget_slice,etc...  this dont work.
> ruby-1.9.2-p0 > app.get_slice()
> NoMethodError: undefined method `get_slice' for #<Cassandra:0x1322c28>
> ruby-1.9.2-p0 > app.get_slice()
> NoMethodError: undefined method `get_slice' for #<Cassandra:0x1322c28>
> I don't know what to try. I'm going nutch here :)

Have you read the README at https://github.com/fauna/cassandra/ ?

-ryan