hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12400) Fix refguide so it does connection#getTable rather than new HTable everywhere.
Date Tue, 25 Nov 2014 08:26:12 GMT

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

stack commented on HBASE-12400:
-------------------------------

Thank you for taking this on [~syuanjiang].

In this patch https://issues.apache.org/jira/secure/attachment/12683500/12404v20.txt, find
client/package-info.java

See how it changes our example code to do the 'new' way.

I was thinking of changing places where we have bits of code so there is a 1.0 version, the
more prominent, and then the old way of doing it as it is now.

I can do this one, np... might take you a good while more time than I since I've had my head
in this a while now.  Otherwise, ask more questions if not clear.  When HBASE-12404 goes in,
there will be more examples to pull from.  Thanks.

> Fix refguide so it does connection#getTable rather than new HTable everywhere.
> ------------------------------------------------------------------------------
>
>                 Key: HBASE-12400
>                 URL: https://issues.apache.org/jira/browse/HBASE-12400
>             Project: HBase
>          Issue Type: Sub-task
>          Components: documentation
>            Reporter: stack
>            Assignee: Stephen Yuan Jiang
>             Fix For: 0.99.2
>
>
> The refguide has bits of code in it.  The code does 'new HTable' to get a table instance.
 Rather, it should be promoting the new style where we get a Connection and then do a getTable
on it.  Ditto for references to 'new HBaseAdmin'.  See ConnectionFactory for new style.  See
also package-info.java in Client for updated example.
> Misty, if you are game for this one, I can help w/ how it should look.



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

Mime
View raw message