Re: Custom data type class in pycassa

2013-08-12 Thread Tyler Hobbs
You can't specify that sort of custom type as part of the schema; instead, use BytesType and tell pycassa to interpret those columns as your custom type through the 'column_validators' attribute on your ColumnFamily object. For example: mycf = ColumnFamily(...)

Custom data type class in pycassa

2013-08-10 Thread Vladimir Prudnikov
Hi all, I use pycassa and I want to store lists and tuples in cassandra by serializing them using MessagePack. Seems like custom data type is what I need. Here is data type I created: ## class MyListType(CassandraType): @staticmethod def pack(value):