[
https://issues.apache.org/jira/browse/HBASE-17126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15677023#comment-15677023
]
Anoop Sam John commented on HBASE-17126:
----------------------------------------
bq.private static final int MAX_TAGS_LENGTH = (2 * Short.MAX_VALUE) + 1;
Put it on top of the file before any method declaration. That is the format
HBase follow.
checkForTagsLength can be public also.
> Expose KeyValue#checkParameters() and checkForTagsLength() to be used by
> other Cell implementations
> ---------------------------------------------------------------------------------------------------
>
> Key: HBASE-17126
> URL: https://issues.apache.org/jira/browse/HBASE-17126
> Project: HBase
> Issue Type: Improvement
> Components: Client, regionserver
> Affects Versions: 2.0.0
> Reporter: Xiang Li
> Assignee: Xiang Li
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: HBASE-17126.master.000.patch
>
>
> KeyValue has 2 useful but private functions to check input parameters, as
> - checkParameters()
> - checkForTagsLength()
> It would be great if their's access could be not private, so that they can be
> used by other Cell or ExtendedCell implementations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)