hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ferdy (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-2824) Add a filter that randomly included rows based on a configured chance.
Date Fri, 09 Jul 2010 12:24:49 GMT

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

Ferdy updated HBASE-2824:
-------------------------

    Attachment: HBASE-2824-v2.patch

Fixed some indentation issues.

> Add a filter that randomly included rows based on a configured chance.
> ----------------------------------------------------------------------
>
>                 Key: HBASE-2824
>                 URL: https://issues.apache.org/jira/browse/HBASE-2824
>             Project: HBase
>          Issue Type: New Feature
>          Components: filters
>            Reporter: Ferdy
>            Priority: Minor
>         Attachments: HBASE-2824-v1.patch, HBASE-2824-v2.patch
>
>
> We needed a filter that allows us to randomly include rows. I will attach a patch with
a simple Filter that is able to do this.
> For example, if you wish to do a scan but only want 1/4 of all values (randomly distributed),
you can use: new RandomRowFilter(0.25f)
> I just wanted to share this Filter with you. It's up to you if you want to include it
in the codebase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message