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 4DCBF200C72 for ; Fri, 28 Apr 2017 07:29:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C735160BB2; Fri, 28 Apr 2017 05:29:17 +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 B9504160BA7 for ; Fri, 28 Apr 2017 07:29:16 +0200 (CEST) Received: (qmail 95472 invoked by uid 500); 28 Apr 2017 05:29:15 -0000 Mailing-List: contact dev-help@orc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@orc.apache.org Delivered-To: mailing list dev@orc.apache.org Received: (qmail 95461 invoked by uid 99); 28 Apr 2017 05:29:15 -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; Fri, 28 Apr 2017 05:29:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 82719DFBB7; Fri, 28 Apr 2017 05:29:15 +0000 (UTC) From: wgtmac To: dev@orc.apache.org Reply-To: dev@orc.apache.org References: In-Reply-To: Subject: [GitHub] orc pull request #113: ORC-176: Refactor common classes for writer and reade... Content-Type: text/plain Message-Id: <20170428052915.82719DFBB7@git1-us-west.apache.org> Date: Fri, 28 Apr 2017 05:29:15 +0000 (UTC) archived-at: Fri, 28 Apr 2017 05:29:17 -0000 Github user wgtmac commented on a diff in the pull request: https://github.com/apache/orc/pull/113#discussion_r113854583 --- Diff: c++/include/orc/Statistics.hh --- @@ -37,12 +37,76 @@ namespace orc { * of rows because of NULL values and repeated values. * @return the number of values */ - virtual uint64_t getNumberOfValues() const = 0; + virtual uint64_t getNumberOfValues() const { + return valueCount; + } + + /** + * Set the number of values in this column + * @param newValueCount new number of values to be set + */ + virtual void setNumberOfValues(uint64_t newValueCount) { --- End diff -- If we put this into Impl classes, then there are many duplicate code which is not elegant. So we decided to lift them up to the base classes so that duplicate codes are reduced significantly while we were implementing the writer. What do you think? --- 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. ---