[
https://issues.apache.org/jira/browse/HBASE-22782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16899906#comment-16899906
]
Murtaza Hassan commented on HBASE-22782:
----------------------------------------
[~reidchan]
Thanks for your comment.
>From users not being worried about writing the conversion i meant that for
>example we have TestGet.java where we are calling the constructor using
>Get(Bytes.toBytes("row")), so user have to write this conversion here. Wouldnt
>it be better if user just passes the string and the conversion is done in the
>Get.java class.
And Wouldnt it be good adding String constructors for {{Scan}}, {{Put}},
{{Delete}}, {{Append}}, etc as well?
Thanks.
> Add String constructors for Get client
> --------------------------------------
>
> Key: HBASE-22782
> URL: https://issues.apache.org/jira/browse/HBASE-22782
> Project: HBase
> Issue Type: New Feature
> Affects Versions: 3.0.0
> Reporter: Murtaza Hassan
> Assignee: Murtaza Hassan
> Priority: Trivial
>
> As we cannot directly pass a String using Get constructors it is better to
> have new String constructors so that we can pass a String directly and don't
> need to convert Strings into Bytes. It will also help everyone who is using
> the Get client as now they dont need to worry about writing the conversion
> themselves as it will be taken care by the String constructor.
>
> Add String constructors for Get client. Also write the necessary tests and
> change the code where required in TestGet.java class.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)