hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16363) Length of column qualifier in Cell is a short or int
Date Fri, 05 Aug 2016 12:48:20 GMT

    [ https://issues.apache.org/jira/browse/HBASE-16363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409405#comment-15409405
] 

Anoop Sam John commented on HBASE-16363:
----------------------------------------

Seems like teh javadoc is a copy paste. What the API return is correct type. May be we need
to fix javadoc.  Though the type is int, the Q length can not be Int.max any way.

> Length of column qualifier in Cell is a short or int
> ----------------------------------------------------
>
>                 Key: HBASE-16363
>                 URL: https://issues.apache.org/jira/browse/HBASE-16363
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Xiang Li
>            Assignee: Xiang Li
>            Priority: Minor
>
> In Cell interface (hbase-common/src/main/java/org/apache/hadoop/hbase/Cell.java)
> In the comment, we have
> {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}
> The length of the qualifier is a short
> But getQualifierLength() returns int
> {code}
> int getQualifierLength();
> {code}
> Which one is correct?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message