You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Atul Gosain <ag...@cisco.com> on 2010/05/10 15:34:48 UTC

ColumnPath Usage

Hi 

  Im really confused about using ColumnPath in thrift java interface. Most of the examples provide create the ColumnPath with 3 parameters, whereas the latest thrift api has ColumnPath with one parameter only. 
If ColumnPath can be thought of as directory structure or path to the column, then how can we specify that path. I see that we can provide a supercolumn and that too as byte[]. What does this mean ?

Im getting very confused about the usage of thrift API. Is there any good information which is up to date and clearly shows usage of these API's. I have gone thru the Articles and Presentation pages of Cassandra. 

Thanks
Atul

Re: ColumnPath Usage

Posted by Jonathan Ellis <jb...@gmail.com>.
if you want to use raw Thrift, you should read
http://wiki.apache.org/cassandra/API where the things like ColumnPath
are explained

On Mon, May 10, 2010 at 1:08 PM, Atul Gosain <at...@gmail.com> wrote:
> Jonathan
>
>   We just wanted to benchmark data insertion rates on the Cassandra store,
> so we started with using Thrift API. Is Hector considered better than Thrift
> because its better documented and intuitive that Thrift ? Any downside to
> it, as Thrift is a low level API to Cassandra. I hope that Hector provides
> the same functionality.
>
> Thanks
> Atul
>
> On Mon, May 10, 2010 at 10:20 PM, Jonathan Ellis <jb...@gmail.com> wrote:
>>
>> Why are you using Thrift from java instead of Hector?
>>
>> http://github.com/rantav/hector
>>
>> On Mon, May 10, 2010 at 8:34 AM, Atul Gosain <ag...@cisco.com> wrote:
>> > Hi
>> >
>> >  Im really confused about using ColumnPath in thrift java interface.
>> > Most of the examples provide create the ColumnPath with 3 parameters,
>> > whereas the latest thrift api has ColumnPath with one parameter only.
>> > If ColumnPath can be thought of as directory structure or path to the
>> > column, then how can we specify that path. I see that we can provide a
>> > supercolumn and that too as byte[]. What does this mean ?
>> >
>> > Im getting very confused about the usage of thrift API. Is there any
>> > good information which is up to date and clearly shows usage of these API's.
>> > I have gone thru the Articles and Presentation pages of Cassandra.
>> >
>> > Thanks
>> > Atul
>>
>>
>>
>> --
>> Jonathan Ellis
>> Project Chair, Apache Cassandra
>> co-founder of Riptano, the source for professional Cassandra support
>> http://riptano.com
>
>
>
> --
>
> Regards
> Atul
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Re: ColumnPath Usage

Posted by Atul Gosain <at...@gmail.com>.
Jonathan

  We just wanted to benchmark data insertion rates on the Cassandra store,
so we started with using Thrift API. Is Hector considered better than Thrift
because its better documented and intuitive that Thrift ? Any downside to
it, as Thrift is a low level API to Cassandra. I hope that Hector provides
the same functionality.

Thanks
Atul

On Mon, May 10, 2010 at 10:20 PM, Jonathan Ellis <jb...@gmail.com> wrote:

> Why are you using Thrift from java instead of Hector?
>
> http://github.com/rantav/hector
>
> On Mon, May 10, 2010 at 8:34 AM, Atul Gosain <ag...@cisco.com> wrote:
> > Hi
> >
> >  Im really confused about using ColumnPath in thrift java interface. Most
> of the examples provide create the ColumnPath with 3 parameters, whereas the
> latest thrift api has ColumnPath with one parameter only.
> > If ColumnPath can be thought of as directory structure or path to the
> column, then how can we specify that path. I see that we can provide a
> supercolumn and that too as byte[]. What does this mean ?
> >
> > Im getting very confused about the usage of thrift API. Is there any good
> information which is up to date and clearly shows usage of these API's. I
> have gone thru the Articles and Presentation pages of Cassandra.
> >
> > Thanks
> > Atul
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com
>



-- 

Regards
Atul

Re: ColumnPath Usage

Posted by Jonathan Ellis <jb...@gmail.com>.
Why are you using Thrift from java instead of Hector?

http://github.com/rantav/hector

On Mon, May 10, 2010 at 8:34 AM, Atul Gosain <ag...@cisco.com> wrote:
> Hi
>
>  Im really confused about using ColumnPath in thrift java interface. Most of the examples provide create the ColumnPath with 3 parameters, whereas the latest thrift api has ColumnPath with one parameter only.
> If ColumnPath can be thought of as directory structure or path to the column, then how can we specify that path. I see that we can provide a supercolumn and that too as byte[]. What does this mean ?
>
> Im getting very confused about the usage of thrift API. Is there any good information which is up to date and clearly shows usage of these API's. I have gone thru the Articles and Presentation pages of Cassandra.
>
> Thanks
> Atul



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com