You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2014/03/18 11:50:43 UTC

[jira] [Updated] (HAMA-892) New interface for custom graph partitioner

     [ https://issues.apache.org/jira/browse/HAMA-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-892:
--------------------------------

    Description: 
This issue is related with custom graph partitioner HAMA-891 

Since http://svn.apache.org/repos/asf/hama/trunk/core/src/main/java/org/apache/hama/bsp/Partitioner.java is designed for key value pairs, we need to add Vertex Partitioner interface.

Below also need to be changed.
{code}
  /**
   * @return the destination peer name of the given vertex id, determined by the
   *         partitioner.
   */
  public String getDestinationPeerName(V vertexId) {
    return runner.getPeer().getPeerName(
        getPartitioner().getPartition(vertexId, value,
            runner.getPeer().getNumPeers()));
  }
{code}

  was:
This issue is related with custom graph partitioner HAMA-891 

Since http://svn.apache.org/repos/asf/hama/trunk/core/src/main/java/org/apache/hama/bsp/Partitioner.java is designed for key value pairs, we need to add new Partitioner interface for graph package.

Below also need to be changed.
{code}
  /**
   * @return the destination peer name of the given vertex id, determined by the
   *         partitioner.
   */
  public String getDestinationPeerName(V vertexId) {
    return runner.getPeer().getPeerName(
        getPartitioner().getPartition(vertexId, value,
            runner.getPeer().getNumPeers()));
  }
{code}


> New interface for custom graph partitioner
> ------------------------------------------
>
>                 Key: HAMA-892
>                 URL: https://issues.apache.org/jira/browse/HAMA-892
>             Project: Hama
>          Issue Type: New Feature
>            Reporter: Edward J. Yoon
>
> This issue is related with custom graph partitioner HAMA-891 
> Since http://svn.apache.org/repos/asf/hama/trunk/core/src/main/java/org/apache/hama/bsp/Partitioner.java is designed for key value pairs, we need to add Vertex Partitioner interface.
> Below also need to be changed.
> {code}
>   /**
>    * @return the destination peer name of the given vertex id, determined by the
>    *         partitioner.
>    */
>   public String getDestinationPeerName(V vertexId) {
>     return runner.getPeer().getPeerName(
>         getPartitioner().getPartition(vertexId, value,
>             runner.getPeer().getNumPeers()));
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)