Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 79150 invoked from network); 27 Aug 2007 22:21:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2007 22:21:52 -0000 Received: (qmail 58795 invoked by uid 500); 27 Aug 2007 22:21:47 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 58768 invoked by uid 500); 27 Aug 2007 22:21:47 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 58759 invoked by uid 99); 27 Aug 2007 22:21:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 15:21:47 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 22:21:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C3FA6714204 for ; Mon, 27 Aug 2007 15:21:30 -0700 (PDT) Message-ID: <7413039.1188253290792.JavaMail.jira@brutus> Date: Mon, 27 Aug 2007 15:21:30 -0700 (PDT) From: "Jim Kellerman (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1757) [hbase] Bloomfilters: single argument constructor, use enum for bloom filter types In-Reply-To: <9516641.1187803950800.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Kellerman updated HADOOP-1757: ---------------------------------- Status: Patch Available (was: Open) Works locally, see if Hudson agrees. > [hbase] Bloomfilters: single argument constructor, use enum for bloom filter types > ---------------------------------------------------------------------------------- > > Key: HADOOP-1757 > URL: https://issues.apache.org/jira/browse/HADOOP-1757 > Project: Hadoop > Issue Type: Improvement > Components: contrib/hbase > Affects Versions: 0.15.0 > Reporter: Jim Kellerman > Assignee: Jim Kellerman > Priority: Minor > Fix For: 0.15.0 > > Attachments: HADOOP-1757-patch.txt > > > On Thu, 2007-08-23 at 01:46 +0900, Inchul Song wrote: > Hi all, > > > > When I create a column for an Hbase table, I have to create > > an instance of the HColumnDescriptor class, and > > pass over an instance of the BloomFilterDescriptor class > > describing which bloom filter to use to the constructor > > of the HColumnDescriptor class. > > > > But there is some inconvenience in using the BloomFilterDescriptor class: > > > > 1. Non-existence of a single argument constructor > > > > When creating an instance of the BloomFilterDescriptor class, > > I need to specify some options for the newly created bloom filter. > > There are three options: type, vectorSize, nbHash. > > I know that these options are important for > > the internal working of a bloom filter, but I cannot help > > but confess that I don't really understand > > what vectorSize and hbHash mean and how these two options > > affect the way in which a bloom filter works. > > As the user of a bloom filter, the only thing I am concerned with is > > the first option, the name of the bloom filter that I'd like to > > use for the column, and it would be nice if the other options > > are automatically decided and filled in. > > > > So it would be nice if there is a constructor > > with a single 'type' argument in the BloomFilterDescriptor class. > > > > 2. Bloom filter types are defined as integers > > > > Bloom filter types are not in an enumeration class. > > Thus, when filling in the type option of the constructor > > from a String value, I always have to write some translation > > code from the string value to one of the integer values > > representing bloom filter types. > > > > If there is an enumeration class containing bloom filter types, > > I can utilize the valueOf method of the enumeration class > > to do this tedious job. > > > > Thanks, > > > > Song -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.