Class One2One


  • public class One2One
    extends Partitioner
    This partitioning technique considers each of the job in the dax as a separate partition. This is used for Euryale style mode of operation in Pegasus.
    Version:
    $Revision$
    Author:
    Karan Vahi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description()
      Returns a textual description of the transfer implementation.
      void determinePartitions​(Callback c)
      This ends up writing out a partition for each job in the dax.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        A short description about the partitioner.
        See Also:
        Constant Field Values
    • Constructor Detail

      • One2One

        public One2One​(GraphNode root,
                       java.util.Map graph,
                       PegasusProperties properties)
        The overloaded constructor.
        Parameters:
        root - the dummy root node of the graph.
        graph - the map containing all the nodes of the graph keyed by the logical id of the nodes.
        properties - the properties passed to the planner.
    • Method Detail

      • determinePartitions

        public void determinePartitions​(Callback c)
        This ends up writing out a partition for each job in the dax. It is a one 2 one mapping from the jobs in the dax to the corresponding partitions in the pdax. The ids of the partitions in pdax is same as the ids of the corresponding jobs in the dax.
        Specified by:
        determinePartitions in class Partitioner
        Parameters:
        c - the callback object to callout to while partitioning.
      • description

        public java.lang.String description()
        Returns a textual description of the transfer implementation.
        Specified by:
        description in class Partitioner
        Returns:
        a short textual description