cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From puneet loya <puneetl...@gmail.com>
Subject Re: counter column family
Date Tue, 27 Mar 2012 12:28:31 GMT
thanxx a ton :) :)

the counter column family works synonymous as 'auto increment' in other
databases rite?

I mean we have a column of  type integer which increments with every insert.

Am i goin the rite way??

please reply :)

On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <robin@us2.nl> wrote:

> *create column family MyCounterColumnFamily with
> default_validation_class=CounterColumnType and
> key_validation_class=UTF8Type and comparator=UTF8Type;*
>
> There you go! Keys must be utf8, as well as the column names. Of course
> you can change those validators.
>
> Cheers!
>
>
> 2012/3/27 puneet loya <puneetloya@gmail.com>
>
>> Can u give an example of create column family with counter column in it.
>>
>>
>> Please reply
>>
>>
>> Regards,
>>
>> Puneet Loya
>>
>
>
>
> --
> With kind regards,
>
> Robin Verlangen
> www.robinverlangen.nl
>
>

Mime
View raw message