CompositeType/DynamicCompositeType for Row Key

2012-02-28 Thread Philip Shon
I have not found any examples of utilizing a CompositeType of DynamicCompositeType as a row key. Is doing this frowned upon? All the examples I've seen have been using a CompositeType only for Column names (or values). My particular use case involves having the two components in the key being a D

Re: CompositeType/DynamicCompositeType for Row Key

2012-02-28 Thread Chris Gerken
Phil, That's the problem with examples :) Row keys can be composite values. That works just fine. Was there something in particular you were trying to do? - Chris Chris Gerken chrisger...@mindspring.com 512.587.5261 http://www.linkedin.com/in/chgerken On Feb 28, 2012, at 10:25 AM, Philip

Re: CompositeType/DynamicCompositeType for Row Key

2012-02-28 Thread Philip Shon
My row keys will actually be a date range. Where the first value is the starting date and the second value will be the length of that date range. Each column inside each row will represent metadata related to a specific product on during that date range. My question would be do I get any advanta

Re: CompositeType/DynamicCompositeType for Row Key

2012-02-28 Thread Dave Brosius
With Key's you get validation if you use composite types... Also, you get prettier output in cli, but the value is less than with composite columns. On 02/28/2012 11:59 AM, Philip Shon wrote: My row keys will actually be a date range. Where the first value is the starting date and the secon

Re: CompositeType/DynamicCompositeType for Row Key

2012-02-29 Thread juri
This is a good example. https://gist.github.com/1847261 I couldn't make it work with DynamicComposite though.

Re: CompositeType/DynamicCompositeType for Row Key

2012-02-29 Thread Philip Shon
Thanks a bunch. On Wed, Feb 29, 2012 at 12:51 PM, juri wrote: > This is a good example. > > https://gist.github.com/1847261 > > I couldn't make it work with DynamicComposite though. > > >