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 7A3C0200BB7 for ; Wed, 9 Nov 2016 20:23:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 78DD4160AFA; Wed, 9 Nov 2016 19:23:36 +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 BDDBA160AEB for ; Wed, 9 Nov 2016 20:23:35 +0100 (CET) Received: (qmail 63524 invoked by uid 500); 9 Nov 2016 19:23:34 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 63512 invoked by uid 99); 9 Nov 2016 19:23:34 -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; Wed, 09 Nov 2016 19:23:34 +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 1A337C0108 for ; Wed, 9 Nov 2016 19:23:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 ulER-Khe4ZJe for ; Wed, 9 Nov 2016 19:23:33 +0000 (UTC) Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 16BAA5FC6D for ; Wed, 9 Nov 2016 19:23:33 +0000 (UTC) Received: by mail-pf0-f180.google.com with SMTP id i88so130638505pfk.2 for ; Wed, 09 Nov 2016 11:23:33 -0800 (PST) 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=5jX327xnxrFd79hcw6XcgZsGWm4w5n8GAqc6PDPsX7U=; b=CLwRB4P0YtOMjqwizMzJp0bFe+ejT5FmgYHw+23EeJy7d5WW+/K2j15iJL7SVX+g+X sRV0PZnDWQCO9qyljSCC1ovCOS16k/lOd6ybTvtXMucdFmu/xR30znlKC8voRlUGg/1e WTlb2TlET4As29gfZ4/mldHebtlRcggNmmwRDCyrKMNR01lbhE+VKh4+hsoB5+Ws/VRR 2csegk7MljEprY7zOMCHolxtHYWziRzWZiOV2GQRE5CCmRw6tMrgcbwXxWa3zJCFa7si F8lVDgh8cGxLd8qfCESXxwwlb/F0uIuJFnoWDFOyAAQeS/psJ76ntadwAGKt0w+wRkFM jq1w== 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=5jX327xnxrFd79hcw6XcgZsGWm4w5n8GAqc6PDPsX7U=; b=C3IKtw34Ks+nUijdTX9Q1QFmA9OyZDMg8Pdute3xd7H9sJ+of37TSTH7FMbT8ykTca leodCAHNVCt4/vHKPvW1l9gs5HyC/nZgxItAw4Q3pYprKXn/DElGkywu7FpGvDmAtzyX ZOfJwSk+I6RCds+250uWB1WoZLv+oDzR7SZaDutJ966K5h7hip/VavqBOPrC/zJrfFEM nPShqBTfku5/LXMgKdL3YjdRkCIo5eTyYL8Y5E8nD9CssvpValV9xQA5pcYg4TcOe68I si6ZgPqWe8/ie4fl8Al3WG5YoNE6cwrOpIoSuc/Inw8v59OdsWsnI0VnRNJMpe/XegN8 bPdw== X-Gm-Message-State: ABUngvePV2SaOAp3qi0rv2lanGv1AJwi1oMDMw7cVu6vfq8+aJ7Un0PjMlDz5Qmf/FAmCg== X-Received: by 10.98.70.74 with SMTP id t71mr2007706pfa.47.1478719389980; Wed, 09 Nov 2016 11:23:09 -0800 (PST) Received: from hw10447.local (207.155.208.210.ptr.us.xo.net. [207.155.208.210]) by smtp.googlemail.com with ESMTPSA id a5sm1093205pfj.53.2016.11.09.11.23.08 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 11:23:09 -0800 (PST) Message-ID: <5823779A.3080701@gmail.com> Date: Wed, 09 Nov 2016 14:23:06 -0500 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev@accumulo.apache.org Subject: Re: [DISCUSS] Iterator Clean Up References: <5823508E.1050004@gmail.com> In-Reply-To: <5823508E.1050004@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Wed, 09 Nov 2016 19:23:36 -0000 for the record: s/AndIterator/IntersectingIterator/ Mike just pointed out that I used the wrong name in IRC. Josh Elser wrote: > OrIterator and AndIterator are both miserable piles and not good > representations of what they're actually supposed to be do. > > They are designed to do conjunctions or disjunctions across one or more > columns within a row. e.g. > > 1 f:a => bob > 1 f:c => george > 1 f:z => sally > > You could use the AndIterator to find row "1" for (f:a => bob AND f:z => > sally) and you could use the OrIterator find row "1" for (f:a => bob OR > f:c => frank). The power behind the design of these iterators is that > you could compose them to do things like (AND (OR f:a => bob f:c => > frank) f:z => sally). > > I'm not sure how to best handle them, but would agree that they are in > terrible shape and not helping anyone. Channeling my "inner Tubbs", if > they continue to exist in accumulo "proper", they should have cleaned > up. Otherwise, defer until someone wants to give them some love. > > Mike Miller wrote: >> I am struggling with writing Iterator tests for ACCUMULO-1280. One >> Iterator >> in particular makes me scratch my head is the OrIterator. It doesn't >> have a >> Test (ACCUMULO-3208) and some of the code appears stale/illogical. This >> class, combined with my other Iterator struggles, makes me wonder if >> there >> are some classes than can be deprecated... >> >> ./apache/accumulo/core/iterators$ ls *.java system/*.java user/*.java >> | wc >> -l >> 72 >> >> Just looking at numbers between these 3 directories we have 72 classes >> pertaining to Iterators/Filters/Combiners. Can any of these safely be >> deprecated in 2.0.0? >> >> We already have this ticket >> for unused Iterator >> classes. Instead of creating tests for these classes, could they be >> deprecated? >>