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 D9AE2200D27 for ; Wed, 25 Oct 2017 20:14:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D8274160BF2; Wed, 25 Oct 2017 18:14:09 +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 2B9CA1609CE for ; Wed, 25 Oct 2017 20:14:09 +0200 (CEST) Received: (qmail 52699 invoked by uid 500); 25 Oct 2017 18:14:08 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 52683 invoked by uid 99); 25 Oct 2017 18:14:08 -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, 25 Oct 2017 18:14:08 +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 6F34BC2ECB for ; Wed, 25 Oct 2017 18:14:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled 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 RY8ChCqAzSXm for ; Wed, 25 Oct 2017 18:14:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BF69C6117C for ; Wed, 25 Oct 2017 18:14:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5C0E5E101B for ; Wed, 25 Oct 2017 18:14:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DA30F2130B for ; Wed, 25 Oct 2017 18:14:00 +0000 (UTC) Date: Wed, 25 Oct 2017 18:14:00 +0000 (UTC) From: "Anoop Sam John (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18995) Move methods that are for internal usage from CellUtil to Private util class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 Oct 2017 18:14:10 -0000 [ https://issues.apache.org/jira/browse/HBASE-18995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16219215#comment-16219215 ] Anoop Sam John commented on HBASE-18995: ---------------------------------------- Just summarizing the points from RB comments and replies. 1. I was saying abt the need for a non public but LP for CP util class.. I did not see the new Util already with LP for CP. Then we will need 3 Utils. CellUtil public, an LP exposed one and a private one. We have many APIs which not even to be given to CPs. 2. Ya we better make Tag also LP and have the related methods moved to CP exposed Util class. May be we can even remove those APIs from public CellUtil with out deprecation cycle? Because no user would have been using it in client side as we never exposed Tags in client side. Ya CP side would have been using but any way lots of BC breaks around CP 3. Matching APIs ya lets keep the ones which take Cells as param and Cell and byte[] as params in LP class. It will be useful for CPs. The ones with offset, length and all, ya lets keep in private util 4. We have APIs like write parts of cells to OS etc. All these can be in private CellUtil. Those which work on ByteRange also. 5. Any APIs which were not released in 1.x branches, we can remove from public CellUtil if needed. No deprecation cycle for them Any other points. Feel free to split this entire thig as a follow on jira also as needed. The hard thing would be to get names for diff levels of exposed classes :-) > Move methods that are for internal usage from CellUtil to Private util class > ---------------------------------------------------------------------------- > > Key: HBASE-18995 > URL: https://issues.apache.org/jira/browse/HBASE-18995 > Project: HBase > Issue Type: Sub-task > Affects Versions: 2.0.0-alpha-3 > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Priority: Critical > Fix For: 2.0.0-alpha-4 > > Attachments: HBASE-18995-branch-2.patch, HBASE-18995-branch-2_1.patch > > > This was brought up long time back. We need to move some of the public APIs from CellUtil to internal private Util class because they are used in some internal flow and does not make sense to have it in a @public exposed Util class. > The topic again came in HBASE-18945 RB comments also. -- This message was sent by Atlassian JIRA (v6.4.14#64029)