You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Mathias Herberts (JIRA)" <ji...@apache.org> on 2013/10/10 23:54:43 UTC

[jira] [Resolved] (HBASE-9717) Allow filterRowKey to return a next key hint

     [ https://issues.apache.org/jira/browse/HBASE-9717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathias Herberts resolved HBASE-9717.
-------------------------------------

    Resolution: Won't Fix

Lars' suggestion to use filterKeyValue is indeed the way to go, I was naively thinking that values were not loaded when calling filterRowKey which would have enabled better performance, but they are already in memory, so no use  to bother with my proposal.

Sorry for the noise.

> Allow filterRowKey to return a next key hint
> --------------------------------------------
>
>                 Key: HBASE-9717
>                 URL: https://issues.apache.org/jira/browse/HBASE-9717
>             Project: HBase
>          Issue Type: New Feature
>          Components: Filters
>            Reporter: Mathias Herberts
>
> The Filter interface has a filterRowKey method which returns a boolean set to true if the given row key should be filtered out.
> When a row key is filtered, it could be interesting to be able to provide the scanner a hint about the next row key which should be examined. This could tremendously speed up scanning in some cases.
> The logic could be similar to that of filterKeyValue with a helper method getNextRowKeyHint, or even simpler, filterRowKey could return a byte[] which would be set to null to mean keep the row, to the empty array to mean filter the row and there is not hint, and to a non empty byte array to mean filter the row and here is a hint about the next key that should be scanned.



--
This message was sent by Atlassian JIRA
(v6.1#6144)