You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Swathi Vikas <sw...@yahoo.com> on 2012/08/16 20:08:50 UTC
C++ Bulk loader and Result set streaming.
Hi All,
I am using C++ client libQtCassandra. I have two questions.
1) I want to bulk load data into cassandra through C++ interface. It is required by my group where i am doing internship. I could bulk load using sstableloader as specified in Datastax :http://www.datastax.com/dev/blog/bulk-loading. But i couldn't find any information on bulk loading using C++ client interface.
2) I want to retrieve all the result of the query(not just first 100 result set) using C++ client. Is there any C++ supporting code or information on streaming the result set into a file or something.
If anyone has any information please direct me where i can look into.
Thank you very much,
Swat.vikas
Re: C++ Bulk loader and Result set streaming.
Posted by Swathi Vikas <sw...@yahoo.com>.
1) For now i am using sstableloader. I think, some time later i will write some code using RPC.
2) Yes, I looked into many blogs and found information that i need to use last index to retrieve next 100 rows. I was trying to save some time if some one has already done this kind of streaming. I will write code to do that.
Thank you very much,
Swat.vikas
________________________________
From: aaron morton <aa...@thelastpickle.com>
To: user@cassandra.apache.org; Swathi Vikas <sw...@yahoo.com>
Sent: Thursday, August 16, 2012 7:06 PM
Subject: Re: C++ Bulk loader and Result set streaming.
But i couldn't find any information on bulk loading using C++ client interface.You cannot.
To bulk load data use the sstableloader, otherwise you need to use the RPC / CQL API.
2) I want to retrieve all the result of the query(not just first 100 result set) using C++ client. Is there any C++ supporting code or information on streaming the result set into a file or something.I've not looked at the C++ client, but normally you use the last column returned as the start column for the next call.
Cheers
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com/
On 17/08/2012, at 6:08 AM, Swathi Vikas <sw...@yahoo.com> wrote:
Hi All,
>
>I am using C++ client libQtCassandra. I have two questions.
>
>1) I want to bulk load data into cassandra through C++ interface. It is required by my group where i am doing internship. I could bulk load using sstableloader as specified in Datastax :http://www.datastax.com/dev/blog/bulk-loading. But i couldn't find any information on bulk loading using C++ client interface.
>
>2) I want to retrieve all the result of the query(not just first 100 result set) using C++ client. Is there any C++ supporting code or information on streaming the result set into a file or something.
>
>If anyone has any information please direct me where i can look into.
>
>Thank you very much,
>Swat.vikas
Re: C++ Bulk loader and Result set streaming.
Posted by aaron morton <aa...@thelastpickle.com>.
> But i couldn't find any information on bulk loading using C++ client interface.
You cannot.
To bulk load data use the sstableloader, otherwise you need to use the RPC / CQL API.
> 2) I want to retrieve all the result of the query(not just first 100 result set) using C++ client. Is there any C++ supporting code or information on streaming the result set into a file or something.
I've not looked at the C++ client, but normally you use the last column returned as the start column for the next call.
Cheers
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com
On 17/08/2012, at 6:08 AM, Swathi Vikas <sw...@yahoo.com> wrote:
> Hi All,
>
> I am using C++ client libQtCassandra. I have two questions.
>
> 1) I want to bulk load data into cassandra through C++ interface. It is required by my group where i am doing internship. I could bulk load using sstableloader as specified in Datastax :http://www.datastax.com/dev/blog/bulk-loading. But i couldn't find any information on bulk loading using C++ client interface.
>
> 2) I want to retrieve all the result of the query(not just first 100 result set) using C++ client. Is there any C++ supporting code or information on streaming the result set into a file or something.
>
> If anyone has any information please direct me where i can look into.
>
> Thank you very much,
> Swat.vikas