You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2010/04/27 12:58:36 UTC
[jira] Created: (HBASE-2495) Allow record filtering with selected
row key values in HBase Export
Allow record filtering with selected row key values in HBase Export
-------------------------------------------------------------------
Key: HBASE-2495
URL: https://issues.apache.org/jira/browse/HBASE-2495
Project: Hadoop HBase
Issue Type: Improvement
Components: util
Affects Versions: 0.20.3
Reporter: Ted Yu
Fix For: 0.20.5
It is desirable to add record filtering capability to HBase Export.
The following code is an example (s is the Scan):
byte [] prefix = Bytes.toBytes(args[5]);
if (args[5].startsWith("^"))
{
s.setFilter(new RowFilter(CompareOp.EQUAL, new RegexStringComparator(args[5])));
}
else s.setFilter(new PrefixFilter(prefix));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.