Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 40239 invoked from network); 13 Dec 2010 00:22:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 00:22:21 -0000 Received: (qmail 52108 invoked by uid 500); 13 Dec 2010 00:22:21 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 52090 invoked by uid 500); 13 Dec 2010 00:22:21 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 52082 invoked by uid 99); 13 Dec 2010 00:22:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 00:22:21 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 00:22:21 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBD0M0FC015303 for ; Mon, 13 Dec 2010 00:22:01 GMT Message-ID: <32463546.81891292199720886.JavaMail.jira@thor> Date: Sun, 12 Dec 2010 19:22:00 -0500 (EST) From: "Todd Lipcon (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-3335) Add BitComparator for filtering In-Reply-To: <32873316.67411292024341079.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970675#action_12970675 ] Todd Lipcon commented on HBASE-3335: ------------------------------------ How about some unit tests? > Add BitComparator for filtering > ------------------------------- > > Key: HBASE-3335 > URL: https://issues.apache.org/jira/browse/HBASE-3335 > Project: HBase > Issue Type: Improvement > Components: client > Reporter: Nathaniel Cook > Priority: Minor > Attachments: HBASE-3335.patch > > Original Estimate: 0h > Remaining Estimate: 0h > > There are many uses cases for setting bits flags and being able filter on those seems like a good idea. > The BitComparator would take a byte[] and a bitwise operator for its constructor. It would perform the bitwise operation on the column value bytes with the specified byte[]. Then return whether the result was non-zero. > Only the CompareOp.EQUAL and CompareOp.NOT_EQUAL would make sense with this comparator. > The binary bitwise operators that apply are AND, OR, and XOR. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.