Re: Custom Java class for secondary index implementation

2016-03-07 Thread Henry Manasseh
I think what I need is already captured in getIndexedValue... ignore earlier email. I'll just need to try it out and if it works I'll provide some information for others in the form of documentation. Thank you, -H /** * Extract the value to be inserted into the index from the components of the ba

Re: Custom Java class for secondary index implementation

2016-03-07 Thread Henry Manasseh
>From my review so far (I am new to the casssandra code base) it seems users could extend RegularColumnIndex, CollectionValueIndex, etc... but this will likely require being able to override the CassandraIndex.insert method which is currently private. My approach would be to de-serialize the cell,

Re: Custom Java class for secondary index implementation

2016-03-06 Thread Jack Krupansky
Is RegularColumnIndex representative of what a typical custom index needs... or not? https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/index/internal/composites/RegularColumnIndex.java Ditto for CassandraIndex (abstract class) - should all (or at least most) custom inde

Re: Custom Java class for secondary index implementation

2016-03-06 Thread Henry Manasseh
Thank you. This is a perfect class for to start experimenting with. On Sun, Mar 6, 2016 at 2:38 PM Sam Tunnicliffe wrote: > You might find o.a.c.i.StubIndex in the test source tree useful. > On 6 Mar 2016 19:24, "Henry Manasseh" wrote: > > > Hello, > > I was wondering if anyone is aware of a m

Re: Custom Java class for secondary index implementation

2016-03-06 Thread Sam Tunnicliffe
You might find o.a.c.i.StubIndex in the test source tree useful. On 6 Mar 2016 19:24, "Henry Manasseh" wrote: > Hello, > I was wondering if anyone is aware of a minimal reference implementation > for a java class implementing a secondary index or some documentation of > the interface(s) I would n