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

Anoop Sam John commented on HBASE-6042:
---------------------------------------

@Amitanand Aiyer
What is the exact usecase that you are looking for?
As per the javadoc for the FirstKeyOnlyFilter, it can be used for only getting 
the 1st KV of the row.
{code}
/**
 * A filter that will only return the first KV from each row.
 * <p>
 * This filter can be used to more efficiently perform row count operations.
 */
{code}

When you can specify the exact column(s) that you want in the result, why to 
specify more than one column and have a filter to select only the 1st column 
among those? Pls correct me if my understanding abt your problem is wrong

                
> FirstKeyOnlyFilter does not work in conjunction with getColumns()
> -----------------------------------------------------------------
>
>                 Key: HBASE-6042
>                 URL: https://issues.apache.org/jira/browse/HBASE-6042
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Amitanand Aiyer
>            Priority: Minor
>
> Given the implementation of ScanQueryMatcher, we check 
> filter.filterKeyValue()
> before determining weather we are going to include the KV in the
> result or not. Thus, if the scan/get were to specify columns other
> than the very first column in the row, they get nothing because
> the filter removes everything else.

--
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

        

Reply via email to