hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiang Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16363) Length of column qualifier in Cell is a short or int
Date Wed, 10 Aug 2016 06:54:22 GMT

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

Xiang Li commented on HBASE-16363:

[~anoop.hbase], thanks for the comments!
bq.Though the type is int, the Q length can not be Int.max any way
Regarding "can not be Int.max", do you mean that is a JVM limitation or HBase limitation?

Restricted by HotSpot JVM limitation, array max length is Integer.MAX_VALUE - 5, or a similar
number, which depends on the platform and JVM version. 
I see some discussion here
or on Stack Overflow http://stackoverflow.com/questions/3038392/do-java-arrays-have-a-maximum-size

Or do you mean that HBase can not support qualifier length to be greater that Short.MAX_VALUE?
I read some Cell implementations, such as KeyValue, seems qualifier length can be greater
than Short.MAX_VALUE, at least there is no such limitation in the code

> 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
>          Components: documentation
>            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
>   * 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

View raw message