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 DCBCD200C53 for ; Tue, 11 Apr 2017 21:29:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DB50D160B9B; Tue, 11 Apr 2017 19:29:52 +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 25F0B160B7D for ; Tue, 11 Apr 2017 21:29:51 +0200 (CEST) Received: (qmail 97629 invoked by uid 500); 11 Apr 2017 19:29:51 -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 97618 invoked by uid 99); 11 Apr 2017 19:29:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2017 19:29:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E9B5DDF9FD; Tue, 11 Apr 2017 19:29:50 +0000 (UTC) From: milleruntime To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request #247: ACCUMULO-3208 Integration test for the OrIterato... Content-Type: text/plain Message-Id: <20170411192950.E9B5DDF9FD@git1-us-west.apache.org> Date: Tue, 11 Apr 2017 19:29:50 +0000 (UTC) archived-at: Tue, 11 Apr 2017 19:29:53 -0000 Github user milleruntime commented on a diff in the pull request: https://github.com/apache/accumulo/pull/247#discussion_r110992809 --- Diff: core/src/main/java/org/apache/accumulo/core/iterators/OrIterator.java --- @@ -80,59 +113,103 @@ public int compareTo(TermSource o) { // sorted after they have been determined to be valid. return this.iter.getTopKey().compareColumnQualifier(o.iter.getTopKey().getColumnQualifier()); --- End diff -- You could add a comment to TermSource stating that the CQ is the docID for the term and is used for sorting. Then note in the class comments that the inner class TermSource, is sortable by docID but this implementation is optimized and returns an unsorted list. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---