FAQ
[IHBase] Improve the expression classes by adding the ability to generate filters from them.
--------------------------------------------------------------------------------------------

Key: HBASE-2239
URL: https://issues.apache.org/jira/browse/HBASE-2239
Project: Hadoop HBase
Issue Type: Improvement
Components: contrib
Affects Versions: 0.20.3
Reporter: Dan Washusen
Fix For: 0.20.4


One of the requirements of IHBase is that the a filter should be provided that at least matches the index expression hint. The IHBase expression classes could easily be used to generate a filter that can be used on the scan...

For example:
{code}
Expression expression = Expression
.or(
Expression.comparison(columnName1, qualifer1, operator1, value1)
)
.or(
Expression.and()
.and(Expression.comparison(columnName2, qualifer2, operator2, value2))
.and(Expression.comparison(columnName3, qualifer3, operator3, value3))
);

Filter filter = expression.toFilter();
{code}

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

Search Discussions

  • stack (JIRA) at Feb 23, 2010 at 9:07 pm
    [ https://issues.apache.org/jira/browse/HBASE-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    stack updated HBASE-2239:
    -------------------------

    Attachment: HBASE-2239.patch
    [IHBase] Improve the expression classes by adding the ability to generate filters from them.
    --------------------------------------------------------------------------------------------

    Key: HBASE-2239
    URL: https://issues.apache.org/jira/browse/HBASE-2239
    Project: Hadoop HBase
    Issue Type: Improvement
    Components: contrib
    Affects Versions: 0.20.3
    Reporter: Dan Washusen
    Fix For: 0.20.4

    Attachments: HBASE-2239.patch


    One of the requirements of IHBase is that the a filter should be provided that at least matches the index expression hint. The IHBase expression classes could easily be used to generate a filter that can be used on the scan...
    For example:
    {code}
    Expression expression = Expression
    .or(
    Expression.comparison(columnName1, qualifer1, operator1, value1)
    )
    .or(
    Expression.and()
    .and(Expression.comparison(columnName2, qualifer2, operator2, value2))
    .and(Expression.comparison(columnName3, qualifer3, operator3, value3))
    );
    Filter filter = expression.toFilter();
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • stack (JIRA) at Feb 23, 2010 at 9:09 pm
    [ https://issues.apache.org/jira/browse/HBASE-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    stack updated HBASE-2239:
    -------------------------

    Hadoop Flags: [Reviewed]
    Status: Patch Available (was: Open)
    [IHBase] Improve the expression classes by adding the ability to generate filters from them.
    --------------------------------------------------------------------------------------------

    Key: HBASE-2239
    URL: https://issues.apache.org/jira/browse/HBASE-2239
    Project: Hadoop HBase
    Issue Type: Improvement
    Components: contrib
    Affects Versions: 0.20.3
    Reporter: Dan Washusen
    Fix For: 0.20.4

    Attachments: HBASE-2239.patch


    One of the requirements of IHBase is that the a filter should be provided that at least matches the index expression hint. The IHBase expression classes could easily be used to generate a filter that can be used on the scan...
    For example:
    {code}
    Expression expression = Expression
    .or(
    Expression.comparison(columnName1, qualifer1, operator1, value1)
    )
    .or(
    Expression.and()
    .and(Expression.comparison(columnName2, qualifer2, operator2, value2))
    .and(Expression.comparison(columnName3, qualifer3, operator3, value3))
    );
    Filter filter = expression.toFilter();
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedFeb 19, '10 at 12:30a
activeFeb 23, '10 at 9:09p
posts3
users1
websitehbase.apache.org

1 user in discussion

stack (JIRA): 3 posts

People

Translate

site design / logo © 2022 Grokbase