You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2014/11/26 18:32:12 UTC
[jira] [Resolved] (HBASE-12400) Fix refguide so it does
connection#getTable rather than new HTable everywhere: first cut!
[ https://issues.apache.org/jira/browse/HBASE-12400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-12400.
---------------------------
Resolution: Fixed
I committed the attached patch. Filed HBASE-12585 for more thorough fixup.
> Fix refguide so it does connection#getTable rather than new HTable everywhere: first cut!
> -----------------------------------------------------------------------------------------
>
> 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: 2.0.0, 0.99.2
>
> Attachments: 12400.txt, doc.txt
>
>
> 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)