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 2A27C200B5E for ; Wed, 10 Aug 2016 10:13:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 28FE8160AB7; Wed, 10 Aug 2016 08:13:22 +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 79A7D160A90 for ; Wed, 10 Aug 2016 10:13:21 +0200 (CEST) Received: (qmail 98744 invoked by uid 500); 10 Aug 2016 08:13:20 -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 98725 invoked by uid 99); 10 Aug 2016 08:13:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 08:13:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7FE8E2C02A4 for ; Wed, 10 Aug 2016 08:13:20 +0000 (UTC) Date: Wed, 10 Aug 2016 08:13:20 +0000 (UTC) From: "Xiang Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16363) Correct javadoc for qualifier length and value length in Cell interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 Aug 2016 08:13:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiang Li updated HBASE-16363: ----------------------------- Status: Patch Available (was: Open) To trigger Hadoop QA. The patch is only a javadoc change, no code changed. > Correct javadoc for qualifier length and value length in Cell interface > ----------------------------------------------------------------------- > > Key: HBASE-16363 > URL: https://issues.apache.org/jira/browse/HBASE-16363 > Project: HBase > Issue Type: Bug > Components: documentation > Reporter: Xiang Li > Assignee: Xiang Li > Priority: Minor > Attachments: HBASE-16363.master.000.patch > > > In Cell interface (hbase-common/src/main/java/org/apache/hadoop/hbase/Cell.java) > (1) We have the following comment for "qualifier" > {code} > /** > * Contiguous raw bytes that may start at any index in the containing array. Max length is > * Short.MAX_VALUE which is 32,767 bytes. > * @return The array containing the qualifier bytes. > */ > {code} > But getQualifierLength() returns int > {code} > int getQualifierLength(); > {code} > (2) We have the following comment for "value" > {code} > /** > * Contiguous raw bytes that may start at any index in the containing array. Max length is > * Integer.MAX_VALUE which is 2,147,483,648 bytes. > * @return The array containing the value bytes. > */ > {code} > Integer.MAX_VALUE is not 2,147,483,648 (2^31), but 2,147,483,647 (2^31-1) -- This message was sent by Atlassian JIRA (v6.3.4#6332)