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 36920200D01 for ; Thu, 7 Sep 2017 22:03:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3384F16098B; Thu, 7 Sep 2017 20:03:08 +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 822601609B8 for ; Thu, 7 Sep 2017 22:03:07 +0200 (CEST) Received: (qmail 87570 invoked by uid 500); 7 Sep 2017 20:03:06 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 87558 invoked by uid 99); 7 Sep 2017 20:03:06 -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; Thu, 07 Sep 2017 20:03:06 +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 0CF37D8092 for ; Thu, 7 Sep 2017 20:03:06 +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 s1EnIDnGQwd4 for ; Thu, 7 Sep 2017 20:03:01 +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 675805FD1B for ; Thu, 7 Sep 2017 20:03:01 +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 E24CCE0ECD for ; Thu, 7 Sep 2017 20:03:00 +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 50C0524157 for ; Thu, 7 Sep 2017 20:03:00 +0000 (UTC) Date: Thu, 7 Sep 2017 20:03:00 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2445) API should use collection-of-bytes representation instead of Text MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Sep 2017 20:03:08 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-2445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16157548#comment-16157548 ] Josh Elser commented on ACCUMULO-2445: -------------------------------------- I can echo Christopher's comments about ByteBuffer being a pain to work with. I wouldn't want to push that onto users as the only option. Didn't [~kturner] make some kind of helper class for bytes that we could leverage? I did want to mention: there is a bit of value that we could recognize server-side by using ByteBuffers, notably around the ability to create "off-heap" (direct) ByteBuffers. Making this kind of change internally would pave the way for future improvements which can help limit the impact of JVM GC and improve our overall latency. > API should use collection-of-bytes representation instead of Text > ----------------------------------------------------------------- > > Key: ACCUMULO-2445 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2445 > Project: Accumulo > Issue Type: Sub-task > Components: client > Affects Versions: 1.5.1, 1.6.0 > Reporter: Sean Busbey > Assignee: Christopher Tubbs > Fix For: 2.0.0 > > > Right now we use Text as a container for bytes rather than as a UTF8 representation of a string. This results in some gymnastics when people wish to use byte sequences that are not valid UTF8 (see ACCUMULO-2437). > We should use some representation of plain bytes (ideally byte[] or ByteBuffer) and deprecate the use of Text so we can remove it later. -- This message was sent by Atlassian JIRA (v6.4.14#64029)