Return-Path: X-Original-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 730377D3B for ; Tue, 29 Nov 2011 04:19:24 +0000 (UTC) Received: (qmail 32293 invoked by uid 500); 29 Nov 2011 04:19:24 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 32267 invoked by uid 500); 29 Nov 2011 04:19:24 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 32259 invoked by uid 99); 29 Nov 2011 04:19:23 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 04:19:23 +0000 Received: from localhost (HELO mail-vx0-f175.google.com) (127.0.0.1) (smtp-auth username edwardyoon, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 04:19:23 +0000 Received: by vcbfo13 with SMTP id fo13so2523068vcb.6 for ; Mon, 28 Nov 2011 20:19:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.88.109 with SMTP id bf13mr46009288vdb.86.1322540362347; Mon, 28 Nov 2011 20:19:22 -0800 (PST) Received: by 10.220.176.202 with HTTP; Mon, 28 Nov 2011 20:19:21 -0800 (PST) In-Reply-To: References: Date: Tue, 29 Nov 2011 13:19:21 +0900 Message-ID: Subject: Re: Reset Input RecordReader From: "Edward J. Yoon" To: hama-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Reopen? I'm OK. On Tue, Nov 29, 2011 at 12:39 PM, Thomas Jungblut wrote: > Hi all, > > I need some kind of reset-logic for the input of a BSP Job. > It should be quite easy to add: > - add a method called resetInput() in BSPPeer > - in concrete implementation it just closes the input split and opens it > again > > If you're interested why I need this, I'm currently writing a k-means > clustering in BSP. > I need to iterate over all vectors from the input and measure distance > against a set of centers in each superstep, so it would help me to "reset" > the input. > > Do you think I can add this right away into the trunk? > > -- > Thomas Jungblut > Berlin > -- Best Regards, Edward J. Yoon @eddieyoon