You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/11 23:08:00 UTC

[jira] [Closed] (HBASE-2239) [IHBase] Improve the expression classes by adding the ability to generate filters from them.

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

Andrew Kyle Purtell closed HBASE-2239.
--------------------------------------

> [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: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.20.3
>            Reporter: Dan Washusen
>            Assignee: Michael Stack
>            Priority: Major
>         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 was sent by Atlassian Jira
(v8.20.7#820007)