The column_validation_classes arg is just for defining individual column
types.  Glad you got it figured out, though.


On Thu, Aug 15, 2013 at 11:23 AM, Pinak Pani <
nishant.has.a.quest...@gmail.com> wrote:

> Thanks for quick reply. Apparantly, I was trying this to get working
>
> cf_kwargs = {'default_validation_class':COUNTER_COLUMN_TYPE}
> sys.create_column_family('my_ks', 'vote_count',
> column_validation_classes=cf_kwargs)  #1
>
> But this works:
>
> sys.create_column_family('my_ks', 'vote_count', **cf_kwargs)  #2
>
> I thought #1 should work.
>
>
>
> On Thu, Aug 15, 2013 at 9:15 PM, Tyler Hobbs <ty...@datastax.com> wrote:
>
>> The only thing that makes a CF a counter CF is that the default
>> validation class is CounterColumnType, which you can set through
>> SystemManager.create_column_family().
>>
>>
>> On Thu, Aug 15, 2013 at 10:38 AM, Pinak Pani <
>> nishant.has.a.quest...@gmail.com> wrote:
>>
>>> I do not find a way to create a counter column family in Pycassa.
>>> This[1] does not help.
>>>
>>> Appreciate if someone can help me.
>>>
>>> Thanks
>>>
>>>  1.
>>> http://pycassa.github.io/pycassa/api/pycassa/system_manager.html#pycassa.system_manager.SystemManager.create_column_family
>>>
>>
>>
>>
>> --
>> Tyler Hobbs
>> DataStax <http://datastax.com/>
>>
>
>


-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Reply via email to