hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6244) [REST] Result generators do not need to query table schema
Date Sat, 23 Jun 2012 18:23:48 GMT

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

Hudson commented on HBASE-6244:
-------------------------------

Integrated in HBase-0.94-security #37 (See [https://builds.apache.org/job/HBase-0.94-security/37/])
    HBASE-6244. [REST] Result generators do not need to query table schema (Revision 1352326)

     Result = SUCCESS
apurtell : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/RowResultGenerator.java
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/rest/ScannerResultGenerator.java

                
> [REST] Result generators do not need to query table schema
> ----------------------------------------------------------
>
>                 Key: HBASE-6244
>                 URL: https://issues.apache.org/jira/browse/HBASE-6244
>             Project: HBase
>          Issue Type: Improvement
>          Components: rest
>    Affects Versions: 0.92.2, 0.96.0, 0.94.1
>            Reporter: Xing Shi
>            Assignee: Andrew Purtell
>            Priority: Minor
>             Fix For: 0.92.2, 0.96.0, 0.94.1
>
>         Attachments: 6244-0.94.patch, 6244.patch
>
>
> Now, the RowResultGenerator and the ScanerResultGenerator will fit the column family
if the request doesn't contain any column info. 
> {code}
>       if (rowspec.hasColumns()) {
>         //addColumn for get or scan
>       } else {
>         for (HColumnDescriptor family: 
>             table.getTableDescriptor().getFamilies()) {
>           scan/get.addFamily(family.getName());
>         }
>       }
> {code}
> The table.getTableDescriptor() will cost 10+ milliseconds in our hbase cluster each request.
We can remove these code because the server will auto add the columns.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message