You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Xing Shi (JIRA)" <ji...@apache.org> on 2012/06/20 17:17:42 UTC
[jira] [Updated] (HBASE-6244) Restful get and scan don't need to
add columns if no column specified
[ https://issues.apache.org/jira/browse/HBASE-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xing Shi updated HBASE-6244:
----------------------------
Summary: Restful get and scan don't need to add columns if no column specified (was: Restful get and scan don't need to add column)
> Restful get and scan don't need to add columns if no column specified
> ---------------------------------------------------------------------
>
> Key: HBASE-6244
> URL: https://issues.apache.org/jira/browse/HBASE-6244
> Project: HBase
> Issue Type: Improvement
> Components: rest
> Reporter: Xing Shi
> Priority: Minor
>
> 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