You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Reid Chan (JIRA)" <ji...@apache.org> on 2019/08/05 03:44:00 UTC

[jira] [Commented] (HBASE-22782) Add String constructors for Get client

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

Reid Chan commented on HBASE-22782:
-----------------------------------

-0 from me.

bq. they dont need to worry about writing the conversion
That's why we have util {{Bytes}}#{{toBytes(String)}}. User worries nothing about conversion by justing calling this API.

After this issue, are we going to add String constructors for {{Scan}}, {{Put}}, {{Delete}}, {{Append}}, etc.? then add String method for {{addColumn}}? If would be that case, -1 from me.

> 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)