Re: [Status Update] Apache Cassandra backend for Sling

2013-08-07 Thread Dishara Wijewardana
On Mon, Aug 5, 2013 at 5:50 AM, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Tue, Jul 23, 2013 at 5:32 PM, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, The Unit test coverage sounds great. I

Re: [Status Update] Apache Cassandra backend for Sling

2013-08-05 Thread Ian Boston
Hi, I'll start a new thread on this for you. Ian On 5 August 2013 01:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Tue, Jul 23, 2013 at 5:32 PM, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara,

Re: [Status Update] Apache Cassandra backend for Sling

2013-08-04 Thread Dishara Wijewardana
On Tue, Jul 23, 2013 at 5:32 PM, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, The Unit test coverage sounds great. I will pull the code and review today. Have you tried loading the bundle into a

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-23 Thread Dishara Wijewardana
On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, The Unit test coverage sounds great. I will pull the code and review today. Have you tried loading the bundle into a running Sling instance ? Not yet. I will try that out and let you know in one of following ways

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-22 Thread Ian Boston
Hi Dishara, The Unit test coverage sounds great. I will pull the code and review today. Have you tried loading the bundle into a running Sling instance ? Once you have built it you can load in 2 ways: method A mvn clean install sling:install The sling:install will post the Jar into the OSGi

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-21 Thread Dishara Wijewardana
On Fri, Jul 19, 2013 at 2:35 PM, Ian Boston i...@tfd.co.uk wrote: Hi, On 19 July 2013 03:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian This is regarding the sub tasks completion of the project according to the time line. I have my code locally, but yet to do some

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-21 Thread Dishara Wijewardana
On Sun, Jul 21, 2013 at 5:32 PM, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Fri, Jul 19, 2013 at 2:35 PM, Ian Boston i...@tfd.co.uk wrote: Hi, On 19 July 2013 03:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian This is regarding the sub tasks completion of

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-19 Thread Ian Boston
Hi, On 19 July 2013 03:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian This is regarding the sub tasks completion of the project according to the time line. I have my code locally, but yet to do some completion with some stuff(one of them is the ongoing discussion on

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-18 Thread Dishara Wijewardana
Hi Ian This is regarding the sub tasks completion of the project according to the time line. I have my code locally, but yet to do some completion with some stuff(one of them is the ongoing discussion on listChildren). After that from API point of view implementation around Cassandra Resource

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-04 Thread Dishara Wijewardana
Hi Ian, I have refactored almost all the code review changes requested. In the process of the rest of the implementation. On Wed, Jul 3, 2013 at 12:52 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi Dishara, On Tue, Jul 2, 2013 at 6:51 PM, Dishara Wijewardana

Re: [Status Update] Apache Cassandra backend for Sling

2013-07-02 Thread Dishara Wijewardana
Hi Ian, Does each bundle in sling made to run their junit tests separately at build time ? If so each pom should have configured to junit test cases. Where and how to define them ? On Mon, Jul 1, 2013 at 5:32 AM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, I've taken the liberty of

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-30 Thread Dishara Wijewardana
On Fri, Jun 28, 2013 at 4:37 AM, Ian Boston i...@tfd.co.uk wrote: Hi, Have you tried the TypeInferringSerializer for the value serializer ? That claims to be detect what the column value is based on the Byte array. Failing that, I would consider making everything byte[] and using your own

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-30 Thread Ian Boston
Hi Dishara, I've taken the liberty of creating a code review at [1]. This is all commits. I've emailed you separately with the comments. I think it would be good if we can get into the habit of looking at the code in this way as it often removes confusion introduced by the english language (which

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-27 Thread Dishara Wijewardana
Hi Ian, I am having a problem with CQL.. For example: CqlQuery*String,String,Long* cqlQuery = new CqlQuery* String,String,Long*(keyspace, new StringSerializer(),new StringSerializer(), new LongSerializer(); cqlQuery.setQuery(insert into mytable (KEY,password,gender,userid) values

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-27 Thread Ian Boston
Hi, Have you tried the TypeInferringSerializer for the value serializer ? That claims to be detect what the column value is based on the Byte array. Failing that, I would consider making everything byte[] and using your own serializer that writes and read values to a byte[] using DataInputStream

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-26 Thread Dishara Wijewardana
On Tue, Jun 25, 2013 at 4:52 AM, Ian Boston i...@tfd.co.uk wrote: Hi, (I might have errors in the CQL, Cassandra schema and the functions need proper escaping) Example 1: Zero depth tree wiht UUID as the rowid or key. URL /content/cassandra/pictures/13f58d5c95c70b6f then the column

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-26 Thread Dishara Wijewardana
On Thu, Jun 27, 2013 at 4:26 AM, Ian Boston i...@tfd.co.uk wrote: On 27 June 2013 02:34, Dishara Wijewardana ddwijeward...@gmail.com wrote: On Tue, Jun 25, 2013 at 4:52 AM, Ian Boston i...@tfd.co.uk wrote: Hi, (I might have errors in the CQL, Cassandra schema and the functions

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-24 Thread Dishara Wijewardana
On Mon, Jun 24, 2013 at 4:02 AM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, Yes. 1 resource == 1 row. The columns within that row represent the properties of the resource. I suggest that you use standard property names where appropriate (eg sling:resourceType is the Resource.resourceType

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-24 Thread Ian Boston
Hi, (I might have errors in the CQL, Cassandra schema and the functions need proper escaping) Example 1: Zero depth tree wiht UUID as the rowid or key. URL /content/cassandra/pictures/13f58d5c95c70b6f then the column family is pictures and the URL - ROWID function just results in the ROWID

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-23 Thread Dishara Wijewardana
Hi Ian, What is the data mapping should be between Cassandra and Sling resource. I mean is a Sling Resource maps to a Cassandra Column ? Or Column Family ? Because to get this Cassandra and Sling story correct we need to finalize this. For an example what we eventually returns is a Sling

Re: [Status Update] Apache Cassandra backend for Sling

2013-06-23 Thread Ian Boston
Hi Dishara, Yes. 1 resource == 1 row. The columns within that row represent the properties of the resource. I suggest that you use standard property names where appropriate (eg sling:resourceType is the Resource.resourceType etc) The Resource itself should be adaptable to a generic

[Status Update] Apache Cassandra backend for Sling

2013-06-18 Thread Dishara Wijewardana
Hi Ian, I am starting this thread to keep track on things related to the GSoC project related milestone status updates and related discussions. So the first task over view will be as follows as per GSoC proposal provided. 1. Implementing a CassandraResourceProvider to READ from Cassandra.