Return-Path: Delivered-To: apmail-hadoop-hbase-issues-archive@minotaur.apache.org Received: (qmail 1582 invoked from network); 8 Apr 2010 17:20:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 17:20:01 -0000 Received: (qmail 32274 invoked by uid 500); 8 Apr 2010 17:20:01 -0000 Delivered-To: apmail-hadoop-hbase-issues-archive@hadoop.apache.org Received: (qmail 32251 invoked by uid 500); 8 Apr 2010 17:20:00 -0000 Mailing-List: contact hbase-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hbase-issues@hadoop.apache.org Received: (qmail 32243 invoked by uid 99); 8 Apr 2010 17:20:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 17:20:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 17:19:58 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 35F53234C4AC for ; Thu, 8 Apr 2010 17:19:37 +0000 (UTC) Message-ID: <319362044.15811270747177220.JavaMail.jira@brutus.apache.org> Date: Thu, 8 Apr 2010 17:19:37 +0000 (UTC) From: "stack (JIRA)" To: hbase-issues@hadoop.apache.org Subject: [jira] Commented: (HBASE-2239) [IHBase] Improve the expression classes by adding the ability to generate filters from them. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855023#action_12855023 ] stack commented on HBASE-2239: ------------------------------ Transitory errors have been seen in tests. Check again after 2248 goes in. > [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.