You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Xuesen Liang (JIRA)" <ji...@apache.org> on 2016/12/14 07:11:58 UTC

[jira] [Commented] (HBASE-15432) TableInputFormat - support multiple column families scan

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

Xuesen Liang commented on HBASE-15432:
--------------------------------------

How about to reuse 'SCAN_COLUMN_FAMILY'?

For example, the following code in org.apache.hadoop.hbase.mapreduce.TableInputFormat

{code}
if (conf.get(SCAN_COLUMN_FAMILY) != null) {
  scan.addFamily(Bytes.toBytes(conf.get(SCAN_COLUMN_FAMILY)));
}
{code}

can be replaced by

{code}
for (String cf : conf.getTrimmedStrings(SCAN_COLUMN_FAMILY)) {
  scan.addFamily(Bytes.toBytes(cf));
}
{code}

It is totally compatible.


> TableInputFormat - support multiple column families scan
> --------------------------------------------------------
>
>                 Key: HBASE-15432
>                 URL: https://issues.apache.org/jira/browse/HBASE-15432
>             Project: HBase
>          Issue Type: New Feature
>    Affects Versions: 2.0.0, 0.98.16, 0.98.16.1
>            Reporter: nirav patel
>
> Currently Hbase TableInputFormat class has SCAN_COLUMN_FAMILY and SCAN_COLUMNS. SCAN_COLUMN_FAMILY can only scan single column family. If we need to scan multiple column families from a table then we must use SCAN_COLUMNS where we must provide both columns and column families which is not a convenient. Can we have a SCAN_COLUMN_FAMILIES which supports scan of multiple column families.



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