Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 73586 invoked from network); 6 Feb 2007 17:47:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2007 17:47:12 -0000 Received: (qmail 71739 invoked by uid 500); 6 Feb 2007 17:47:18 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 71703 invoked by uid 500); 6 Feb 2007 17:47:18 -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 71694 invoked by uid 99); 6 Feb 2007 17:47:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2007 09:47:18 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [216.145.54.171] (HELO mrout1.yahoo.com) (216.145.54.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2007 09:47:07 -0800 Received: from [66.228.175.147] (lordseason-mac.corp.yahoo.com [66.228.175.147]) by mrout1.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id l16Hjlsq035640 for ; Tue, 6 Feb 2007 09:45:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:content-type:message-id: content-transfer-encoding:from:subject:date:to:x-mailer; b=PdR2ueYx9WXQWlxR+0YDF8YhoDgdqIGwncF8FHWhP+01gIG1fRlF3vjH2OdigGlU Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <32BCE721-54C3-4B61-8120-F209B7C4C075@yahoo-inc.com> References: <200702060844.05476.andreas.juffinger@tugraz.at> <32BCE721-54C3-4B61-8120-F209B7C4C075@yahoo-inc.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Milind Bhandarkar Subject: Re: BytesWritable does not have a setter method for the byte[] Date: Tue, 6 Feb 2007 09:46:22 -0800 To: hadoop-dev@lucene.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org I have written a Buffer class in Hadoop record I/O. Buffer resembles BytesWritable. I have added a few methods to it that make it better (IMHO). They are set(byte[]), append(byte[], offset, length), append (byte[]), and truncate(). In future BytesWritable could be generated by the record I/O translator from this DDL: class BytesWritable { Buffer value; } - Milind On Feb 6, 2007, at 12:39 AM, Owen O'Malley wrote: > > On Feb 5, 2007, at 11:44 PM, Andreas Juffinger wrote: > >> >> Why is there no set(byte[]) method in the BytesWritable class? As >> far as I >> know each of the other Writeable classes do have a set method - is >> there a >> deeper reason why the set method is not there ? > > *Laugh* I have such a method in a patch I'm working on. I went > ahead and uploaded what I had as a patch in HADOOP-982. > > -- Owen > > -- Milind Bhandarkar (mailto:milindb@yahoo-inc.com) (phone: 408-349-2136 W)