Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 731E09FCA for ; Tue, 27 Mar 2012 12:32:05 +0000 (UTC) Received: (qmail 16932 invoked by uid 500); 27 Mar 2012 12:32:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 16902 invoked by uid 500); 27 Mar 2012 12:32:03 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 16894 invoked by uid 99); 27 Mar 2012 12:32:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 12:32:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [203.199.18.89] (HELO mail1.impetus.co.in) (203.199.18.89) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 12:31:57 +0000 Received: from MAIL3.impetus.co.in ([fe80::443f:4f25:6889:b268]) by mail1.impetus.co.in ([fe80::4c95:4ec3:183e:2d3%15]) with mapi id 14.02.0283.003; Tue, 27 Mar 2012 18:01:34 +0530 From: Rishabh Agrawal To: "user@cassandra.apache.org" Subject: RE: counter column family Thread-Topic: counter column family Thread-Index: AQHNDBFq/dLv+PPbG0OL/kr+DQ9XrJZ9s5sAgAACS4CAAFzBYA== Date: Tue, 27 Mar 2012 12:31:34 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.41.53] Content-Type: multipart/alternative; boundary="_000_D5515937F9B7CC409E7561CBF5124A640E917F19Mail3impetuscoi_" MIME-Version: 1.0 --_000_D5515937F9B7CC409E7561CBF5124A640E917F19Mail3impetuscoi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable You can even define how much increment you want. But let me just warn you, = as far my knowledge, it has consistency issues. From: puneet loya [mailto:puneetloya@gmail.com] Sent: Tuesday, March 27, 2012 5:59 PM To: user@cassandra.apache.org Subject: Re: counter column family thanxx a ton :) :) the counter column family works synonymous as 'auto increment' in other dat= abases 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 > wrote: create column family MyCounterColumnFamily with default_validation_class=3D= CounterColumnType and key_validation_class=3DUTF8Type and comparator=3DUTF8= Type; 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 > 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 ________________________________ Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know = more about our Big Data quick-start program at the event. New Impetus webcast 'Cloud-enabled Performance Testing vis-?-vis On-premise= ' available at http://bit.ly/z6zT4L. NOTE: This message may contain information that is confidential, proprietar= y, privileged or otherwise protected by law. The message is intended solely= for the named addressee. If received in error, please destroy and notify t= he sender. Any use of this email is prohibited when received in error. Impe= tus does not represent, warrant and/or guarantee, that the integrity of thi= s communication has been maintained nor that the communication is free of e= rrors, virus, interception or interference. --_000_D5515937F9B7CC409E7561CBF5124A640E917F19Mail3impetuscoi_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

You can even define how= much increment you want. But let me just warn you, as far my knowledge, it= has consistency issues.

 

From: puneet= loya [mailto:puneetloya@gmail.com]
Sent: Tuesday, March 27, 2012 5:59 PM
To: user@cassandra.apache.org
Subject: Re: counter column family

 

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_validatio= n_class=3DCounterColumnType and key_validation_class=3DUTF8Type and comparator=3DUTF8Type; 

 

There you go! Keys must be utf8, as well as the colu= mn 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 c= ounter column in it. 

 

 

Please reply

 

 

Regards,

 

Puneet Loya



 

--
With kind regards,

 

Robin Verlangen=

 

 




Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know = more about our Big Data quick-start program at the event.

New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-v= is On-premise’ available at http://bit.ly/z6zT4L.


NOTE: This message may contain information that is confidential, proprietar= y, privileged or otherwise protected by law. The message is intended solely= for the named addressee. If received in error, please destroy and notify t= he sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant = and/or guarantee, that the integrity of this communication has been maintai= ned nor that the communication is free of errors, virus, interception or in= terference.
--_000_D5515937F9B7CC409E7561CBF5124A640E917F19Mail3impetuscoi_--