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 5D3F69F09 for ; Sat, 25 Feb 2012 00:18:56 +0000 (UTC) Received: (qmail 24313 invoked by uid 500); 25 Feb 2012 00:18:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 24252 invoked by uid 500); 25 Feb 2012 00:18:54 -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 24242 invoked by uid 99); 25 Feb 2012 00:18:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 00:18:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tyler@datastax.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-lpp01m010-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 00:18:49 +0000 Received: by lahl5 with SMTP id l5so4026171lah.31 for ; Fri, 24 Feb 2012 16:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of tyler@datastax.com designates 10.112.99.231 as permitted sender) client-ip=10.112.99.231; Authentication-Results: mr.google.com; spf=pass (google.com: domain of tyler@datastax.com designates 10.112.99.231 as permitted sender) smtp.mail=tyler@datastax.com Received: from mr.google.com ([10.112.99.231]) by 10.112.99.231 with SMTP id et7mr1767493lbb.57.1330129107582 (num_hops = 1); Fri, 24 Feb 2012 16:18:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.99.231 with SMTP id et7mr1459225lbb.57.1330129107496; Fri, 24 Feb 2012 16:18:27 -0800 (PST) Received: by 10.112.27.65 with HTTP; Fri, 24 Feb 2012 16:18:27 -0800 (PST) In-Reply-To: References: Date: Fri, 24 Feb 2012 18:18:27 -0600 Message-ID: Subject: Re: Counter add in 'batch' From: Tyler Hobbs To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d040169cff52db904b9bed098 X-Gm-Message-State: ALoCoQmyiEuwkTepM2NyvDGcO9mXvSXGjCS3GUiCaV3xdTjWwnt7aND1V5QFRYaUNzhbe6WXAi1m --f46d040169cff52db904b9bed098 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 21, 2012 at 4:00 PM, A J wrote: > Hello > Is there a way to incorporate counter CF add operations in batch ? I > just tried with pycassa and it seems to just allow > insert/update/remove operations but not counter add operations. > > Thanks. > If you're using the batch interface (Mutator, CfMutator), the insert() method works for counters. It should behave the same as add(). -- Tyler Hobbs DataStax --f46d040169cff52db904b9bed098 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Feb 21, 2012 at 4:00 PM, A J <s5alye@gmail.com> wrote:
Hello
Is there a way to incorporate counter CF add operations in batch ? I
just tried with pycassa and it seems to just allow
insert/update/remove operations but not counter add operations.

Thanks.

If you're using the batch interface (Mutator, Cf= Mutator), the insert() method works for counters.=A0 It should behave the s= ame as add().

--
Tyler Hob= bs
DataStax
<= br> --f46d040169cff52db904b9bed098--