CompositeType support for keynames

2012-07-09 Thread prasenjit mukherjee
Any reason we dont have CompositeType data structure for key_validation_class ( ref: http://www.datastax.com/docs/0.8/configuration/storage_configuration#key-validation-class) ? I would like to create row_names in the form username:mmddhhmm ( e.g. joe:201206092312 ). I can still do

Re: CompositeType support for keynames

2012-07-09 Thread Tyler Hobbs
It's certainly possible to have a CompositeType key_validation_class. What made you think that you cannot? On Mon, Jul 9, 2012 at 7:48 AM, prasenjit mukherjee prasen@gmail.comwrote: Any reason we dont have CompositeType data structure for key_validation_class ( ref: http

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 jurivrlji...@gmail.com wrote: This is a good example. https://gist.github.com/1847261 I couldn't make it work with DynamicComposite though.

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

Re: CompositeType/DynamicCompositeType for Row Key

2012-02-28 Thread Chris Gerken
, Philip Shon wrote: 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

Re: How to delete a range of columns using first N components of CompositeType Column?

2012-02-26 Thread aaron morton
@aaronmorton http://www.thelastpickle.com On 23/02/2012, at 8:08 PM, Praveen Baratam wrote: More precisely, Lets say we have a CF with the following spec. create column family Test with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)' and key_validation_class

Re: How to delete a range of columns using first N components of CompositeType Column?

2012-02-24 Thread Praveen Baratam
- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 23/02/2012, at 8:08 PM, Praveen Baratam wrote: More precisely, Lets say we have a CF with the following spec. create column family Test with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type

Re: How to delete a range of columns using first N components of CompositeType Column?

2012-02-23 Thread aaron morton
Developer @aaronmorton http://www.thelastpickle.com On 23/02/2012, at 8:08 PM, Praveen Baratam wrote: More precisely, Lets say we have a CF with the following spec. create column family Test with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)' and key_validation_class

Re: How to delete a range of columns using first N components of CompositeType Column?

2012-02-22 Thread Praveen Baratam
More precisely, Lets say we have a CF with the following spec. create column family Test with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)' and key_validation_class = 'UTF8Type' and default_validation_class = 'UTF8Type'; And I have columns such as: Jack:Name:First

CompositeType for use with 0.7

2011-11-05 Thread Guy Incognito
Is this a lib I can just drop into a 0.7 instance of cassandra and use? I'm not sure what to make of the README about not using it with versions earlier than 0.8.0-rc1. https://github.com/riptano/hector-composite the goal is to start using CompositeTypes in 0.7 (which I can't upgrade to 0.8

Re: CompositeType for use with 0.7

2011-11-05 Thread Edward Capriolo
If your version of Cassandra does not support composite you need to upgrade, If the server is not aware the column is composite it will not be able to use them to full effect. You likely will not get the sorting and slicing capabilities you want. Edward On Sat, Nov 5, 2011 at 4:44 AM, Guy

Re: CompositeType for use with 0.7

2011-11-05 Thread Ed Anuff
It was developed for 0.7x but we then made a few changes so that it would work with 0.8-rc1 that broke the 0.7 compatibility. The idea at the time was to do a 0.7 branch for it but it looks like that never got checked in. If you roll back to the previous commit it should give you a version that

Re: ConfigurationException: Nonsensical empty parameter list for CompositeType

2011-10-21 Thread Vitaly Vengrov
) at org.apache.cassandra.db.marshal.TypeParser.parse(TypeParser.java:92) at org.apache.cassandra.config.CFMetaData.fromAvro(CFMetaData.java:346) ... 6 more Caused by: org.apache.cassandra.config.ConfigurationException: Nonsensical empty parameter list for CompositeType

ConfigurationException: Nonsensical empty parameter list for CompositeType

2011-10-20 Thread Vitaly Vengrov
) ... 6 more Caused by: org.apache.cassandra.config.ConfigurationException: Nonsensical empty parameter list for CompositeType at org.apache.cassandra.db.marshal.CompositeType.getInstance(CompositeType.java:67) at org.apache.cassandra.db.marshal.CompositeType.getInstance(CompositeType.java:61

Re: ConfigurationException: Nonsensical empty parameter list for CompositeType

2011-10-20 Thread aaron morton
) at org.apache.cassandra.db.marshal.TypeParser.parse(TypeParser.java:92) at org.apache.cassandra.config.CFMetaData.fromAvro(CFMetaData.java:346) ... 6 more Caused by: org.apache.cassandra.config.ConfigurationException: Nonsensical empty parameter list for CompositeType

CompositeType

2011-08-15 Thread Stephen Pope
Hey, is there any documentation or examples of how to use the CompositeType? I can't find anything about it on the wiki or the datastax docs. Cheers, Steve

Re: CompositeType

2011-08-15 Thread Benoit Perroud
You should give a look at https://github.com/edanuff/CassandraIndexedCollections This is a rather good starting point for Composites. 2011/8/15 Stephen Pope stephen.p...@quest.com:  Hey, is there any documentation or examples of how to use the CompositeType? I can't find anything about

Re: CompositeType for row Keys

2011-07-24 Thread David Boxenhorn
where the column name are these keys On Fri, Jul 22, 2011 at 12:37 PM, Nate McCall n...@datastax.com wrote: yes,but why would you use CompositeType if you don't need range query? If you were doing composite keys anyway (common approach with time series data for example), you would not have

CompositeType for row Keys

2011-07-22 Thread Patrick Julien
With the current implementation of CompositeType in Cassandra 0.8.1, is it recommended practice to try to use a CompositeType as the key? Or are both, column and key, equally well supported? The documentation on CompositeType is light, well non-existent really, with key_validation_class set

Re: CompositeType for row Keys

2011-07-22 Thread Donal Zang
If you are using OPP, then you can use CompositeType on both key and column name; otherwise(Random Partition), just use it for columns. On 22/07/2011 17:10, Patrick Julien wrote: With the current implementation of CompositeType in Cassandra 0.8.1, is it recommended practice to try to use

Re: CompositeType for row Keys

2011-07-22 Thread Patrick Julien
I can still use it for keys if I don't need ranges then? Because for what we are doing we can always re-assemble keys On Fri, Jul 22, 2011 at 11:38 AM, Donal Zang zan...@ihep.ac.cn wrote: If you are using OPP, then you can use CompositeType on both key and column name; otherwise(Random

Re: CompositeType for row Keys

2011-07-22 Thread Donal Zang
On 22/07/2011 17:56, Patrick Julien wrote: I can still use it for keys if I don't need ranges then? Because for what we are doing we can always re-assemble keys yes,but why would you use CompositeType if you don't need range query? On Fri, Jul 22, 2011 at 11:38 AM, Donal Zangzan...@ihep.ac.cn

Re: CompositeType for row Keys

2011-07-22 Thread Nate McCall
yes,but why would you use CompositeType if you don't need range query? If you were doing composite keys anyway (common approach with time series data for example), you would not have to write parsing and concatenation code. Particularly useful if you had mixed types in the key.

Re: CompositeType for row Keys

2011-07-22 Thread Patrick Julien
Exactly. In any case, I just answered my own question. If I need range, I can just make another column family where the column name are these keys On Fri, Jul 22, 2011 at 12:37 PM, Nate McCall n...@datastax.com wrote: yes,but why would you use CompositeType if you don't need range query

Creating comparator of (Dynamic)CompositeType with cassandra-cli

2011-07-18 Thread Anthony Ikeda
Is this possible? I'm trying to create a Column Family with a CompositeType comparator, but I keep getting an error: create column family Transactions with comparator = CompositeType(UTF8Type, UUIDType) and keys_cached=1 and rows_cached=1000; Syntax error at position 84: missing EOF

Re: Creating comparator of (Dynamic)CompositeType with cassandra-cli

2011-07-18 Thread Anthony Ikeda
anthony.ikeda@gmail.com wrote: Is this possible? I'm trying to create a Column Family with a CompositeType comparator, but I keep getting an error: create column family Transactions with comparator = CompositeType(UTF8Type, UUIDType) and keys_cached=1 and rows_cached=1000; Syntax

Re: Creating comparator of (Dynamic)CompositeType with cassandra-cli

2011-07-18 Thread Nate McCall
: Is this possible? I'm trying to create a Column Family with a CompositeType comparator, but I keep getting an error: create column family Transactions with comparator = CompositeType(UTF8Type, UUIDType) and keys_cached=1 and rows_cached=1000; Syntax error at position 84: missing EOF at '(' Same issue