Return-Path: X-Original-To: apmail-incubator-giraph-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-giraph-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 57E7C9C79 for ; Wed, 5 Oct 2011 15:19:58 +0000 (UTC) Received: (qmail 72808 invoked by uid 500); 5 Oct 2011 15:19:58 -0000 Delivered-To: apmail-incubator-giraph-dev-archive@incubator.apache.org Received: (qmail 72769 invoked by uid 500); 5 Oct 2011 15:19:58 -0000 Mailing-List: contact giraph-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: giraph-dev@incubator.apache.org Delivered-To: mailing list giraph-dev@incubator.apache.org Received: (qmail 72748 invoked by uid 99); 5 Oct 2011 15:19:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 15:19:58 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 15:19:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 352EC2AAE4C for ; Wed, 5 Oct 2011 15:19:34 +0000 (UTC) Date: Wed, 5 Oct 2011 15:19:34 +0000 (UTC) From: "Claudio Martella (Commented) (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: <1186106564.12121.1317827974219.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <136675936.11015.1317806614084.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GIRAPH-47) Export Worker's Context/State to vertices through pre/post/Application/Superstep 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/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121037#comment-13121037 ] Claudio Martella commented on GIRAPH-47: ---------------------------------------- another much easier way, at least for me, would be just to add a getContext() inside of BasicVertex and return GraphMapper's Context. In this case I'd guess we could also change the definition of Mapper from , although it should work anyway if the the object to write implements toString() accordingly. Or, third possibility, adding an emit(Writable key, Writable value) method to BasicVertex that forwards to Context.write(). > Export Worker's Context/State to vertices through pre/post/Application/Superstep > -------------------------------------------------------------------------------- > > Key: GIRAPH-47 > URL: https://issues.apache.org/jira/browse/GIRAPH-47 > Project: Giraph > Issue Type: Improvement > Components: graph > Affects Versions: 0.70.0 > Reporter: Claudio Martella > > It would be quite useful for vertices to reach some worker-related information stored i.e. in the GraphState class. > This information could be exported as a parameter to pre/post/Application/Superstep like this: > public void preApplication(Configurable workerObject); > public void postApplication(Configurable workerObject); > public void preSuperstep(Configurable workerObject); > public void postSuperstep(Configurable workerObject); > public Configurable getWorkerObject(); > Another possibility is to add a Context inner class to BasicVertex to store this information. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira