Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F577200BA6 for ; Tue, 18 Oct 2016 16:05:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0DC11160ADC; Tue, 18 Oct 2016 14:05:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5460E160ACC for ; Tue, 18 Oct 2016 16:05:42 +0200 (CEST) Received: (qmail 46317 invoked by uid 500); 18 Oct 2016 14:05:41 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 46306 invoked by uid 99); 18 Oct 2016 14:05:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 14:05:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C63F7C242D for ; Tue, 18 Oct 2016 14:05:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.198 X-Spam-Level: X-Spam-Status: No, score=0.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id T0h16t9SvBoe for ; Tue, 18 Oct 2016 14:05:40 +0000 (UTC) Received: from mail-pf0-f175.google.com (mail-pf0-f175.google.com [209.85.192.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 852165FB32 for ; Tue, 18 Oct 2016 14:05:34 +0000 (UTC) Received: by mail-pf0-f175.google.com with SMTP id r16so71682087pfg.1 for ; Tue, 18 Oct 2016 07:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=umvBdO2JfLjeg767xRrZ2rDp8cIyJIFVWuDXd57eWnc=; b=Oa/mPZ3B/znzkRvSuiAXVfXVaAqDKnVdgDauFwFGRffgHznxJG6ciP75DiqXHdO/+s quEHPcCRCJ63EAgt5uV9wuTTKTFOea9FnyRkNdNt8Af+JvA0BNcDLfbnsDsSpo2j7Pb0 8vlv8RTsjVGVbMMzYMuDIletMAdMg/Z2pdoMqaLE5hKXirUPG1Nc6UPHFzAYTeSMILQm iIjXJNg3Uzk18oAgUdp1DpvQO9jqi/fwX2aDqR6UqlFL6ZMcEz4RMnmgcC6Yh+Km4MAQ abpZJ/le/D8ReC9vcYgxuu/+/vh54FnyLhRtH8iq2b2GXp7cjJhXGi0/NXJCGPmRtKiF aXJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=umvBdO2JfLjeg767xRrZ2rDp8cIyJIFVWuDXd57eWnc=; b=cH8/2C+v2Z0k6s1E1hNu9kxOw1zkiC5ntevostn4IPvNDqPk/6pdfpXlKSr+8NBcip U3R3f71low72RBEy6jZYJop1akrSVYmhqbgyvNupte7v7YDJtgCE0KwCfSFHhfCWa9Ur p4ArgyMuR74H5BfxHIvPV3pJz1P74DWFk8P057/koyGrcTvJ2twGNKCW1kiGV9Uo7vNC mMD9rA8Kvzk4OY6zb+NDBRuBZ80SHxWU3Ld8tHdLZ9+36qLgz5P1ULv1aFkF5UIKLXBp tgq5GElBuJrQUGNLSC9N6ZRaIQWNBdOWHq+fOmzEbTDzisazln2VOsfhWAICfa7TAgbu gJOQ== X-Gm-Message-State: AA6/9RlZZ3NTPBkZk+x7CHMMpJSi/ReqgVGI1tl+zHfbOtJiuO0cCkBN9Vymo1xy0g3AOQ== X-Received: by 10.99.6.11 with SMTP id 11mr697184pgg.53.1476799516538; Tue, 18 Oct 2016 07:05:16 -0700 (PDT) Received: from hw10447.local (207.155.208.210.ptr.us.xo.net. [207.155.208.210]) by smtp.googlemail.com with ESMTPSA id t29sm34288902pfk.26.2016.10.18.07.05.08 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 07:05:15 -0700 (PDT) Message-ID: <58062C14.9010306@gmail.com> Date: Tue, 18 Oct 2016 10:05:08 -0400 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: Count RowIDs with a common Prefix References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Tue, 18 Oct 2016 14:05:43 -0000 +1 to what Dylan said. The naive approach would be to run a scan from [rowID:,rowID;), parse out the otherID and count them. The iterator approach Dylan suggested would push this work to the TabletServer which would likely result in a much more efficient computation. Dylan Hutchison wrote: > Write an iterator to compute partial sums. Make sure the iterator does > not return a key outside if the range to which it was seeked. (You don't > have to modify the keys you return; just sum the keys below the first > one for each key prefix into the first one.) > > Collect the partial sums at the client from the batch scan. Compute full > sums at the client. > > > On Oct 17, 2016 11:02 PM, "Yamini Joshi" > wrote: > > Hello all > > My keys are of the form rowID:otherID where there are multiple > otherIDs for a RowID. I want to know the count of all the otherIDs > within a rowID. What would be the most optimal way to implement this? > > Best regards, > Yamini Joshi >