Return-Path: X-Original-To: apmail-cassandra-dev-archive@www.apache.org Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66266483B for ; Mon, 27 Jun 2011 23:13:37 +0000 (UTC) Received: (qmail 94724 invoked by uid 500); 27 Jun 2011 23:13:36 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 94529 invoked by uid 500); 27 Jun 2011 23:13:36 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 94520 invoked by uid 99); 27 Jun 2011 23:13:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 23:13:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cryptcom@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 23:13:29 +0000 Received: by iye7 with SMTP id 7so6455513iye.31 for ; Mon, 27 Jun 2011 16:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=tCFfU3GuNqYFvTQSBpg3u08e3aH84IrkEO5oC18Encc=; b=DYfzkz61CJgdNiOaqD/DOj4rMTXeYFc42dvmuiSHxl2+IeL3WSdxHtvwXiFYCjslYd gZ2IvhjBY+0VgevnIrc5pdScaH6EGjAer3JX1jqiQd33BN7g+Oa9XNw1XutM2hv5QlTd 2EqMYpOKFqrbMnTVLIOU4MNyKdZ2SugdwLZn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=poABhRRhq2nIDfNE8mAyeVo5JvBn5NqHkdTXWerhP1+rxhYqI6Wxoz3Bqe7VXn97ik 7SAm5Qy/VBcd2j1qYyacuDyPugLkQsiPzY/03hoaN5PjVA94aWJ10WbL9VppLbsX6/+T wpTtHjIWwlufxXLjzHIHP9K5BibjEtD3UlUnU= MIME-Version: 1.0 Received: by 10.42.2.212 with SMTP id 20mr3502340icl.318.1309216388245; Mon, 27 Jun 2011 16:13:08 -0700 (PDT) Received: by 10.43.52.4 with HTTP; Mon, 27 Jun 2011 16:13:08 -0700 (PDT) Date: Mon, 27 Jun 2011 19:13:08 -0400 Message-ID: Subject: CounterColumn as a double From: Joseph Stein To: dev@cassandra.apache.org Content-Type: multipart/alternative; boundary=0050450165acc1693a04a6b9b1bf X-Virus-Checked: Checked by ClamAV on apache.org --0050450165acc1693a04a6b9b1bf Content-Type: text/plain; charset=ISO-8859-1 So has anyone considered using the CounterColumn for summing? I wanted to-do this over the weekend until I realized it was only a long :( so using it for things like duration (as an example for me this would have been great to keep track of aggregate durations of ad impressions) are not possible (or total costs when processing business workflows, etc,etc). I thought this might be a little more the speed of a first contribution too :) and also helps out with more functionality since a lot of real time analytics will need double. Let me know, I think it is a good feature. Implementing it not sure we would want to break the thrift interface I would suggest that I would create another interface for the double value? Under the hood of the thrift interface I was thinking of creating a CounterValue class and then setting the lValue or the dValue depending on which thrift function was called. I can update the thrift, add a sister function and re-work the entire code path of long CounterColumn.value into CounterValue CounterColumn.value. /* Joe Stein http://www.linkedin.com/in/charmalloc Twitter: @allthingshadoop */ --0050450165acc1693a04a6b9b1bf--