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 2A3D4200B0F for ; Fri, 17 Jun 2016 20:19:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 28D73160A64; Fri, 17 Jun 2016 18:19:07 +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 97966160A4C for ; Fri, 17 Jun 2016 20:19:06 +0200 (CEST) Received: (qmail 97198 invoked by uid 500); 17 Jun 2016 18:19:05 -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 97133 invoked by uid 99); 17 Jun 2016 18:19:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2016 18:19:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 504DF2C1F62 for ; Fri, 17 Jun 2016 18:19:05 +0000 (UTC) Date: Fri, 17 Jun 2016 18:19:05 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15879) Introduce Key interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Jun 2016 18:19:07 -0000 [ https://issues.apache.org/jira/browse/HBASE-15879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336615#comment-15336615 ] Enis Soztutar commented on HBASE-15879: --------------------------------------- bq. The initial intention was to have this Key as an optimization for cells with contiguous key but may be we should see if we can conceptualize this inside a Cell itself. Allright. One other idea we can pursue is to keep {{Cell}} as it is, so that we keep the interface simple for the application/client side. And introduce something like {{InternalCell}} which contains all advanced and implementation level stuff we want the Cell interface to have optionally. > Introduce Key interface > ----------------------- > > Key: HBASE-15879 > URL: https://issues.apache.org/jira/browse/HBASE-15879 > Project: HBase > Issue Type: Improvement > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Attachments: HBASE-15879.patch, HBASE-15879_1.patch > > > Introduce an interface called Key and allow Cell implementations to implement this Key interface for cases like KeyValue, OffheapKeyValue and DBE cells (Except prefix tree) so that we can avoid copies when we deal with only Cells in case of block index creations (like ROOT, Bloom etc). Helps in reduction of garbage also. -- This message was sent by Atlassian JIRA (v6.3.4#6332)