Uploaded image for project: 'Giraph'
  1. Giraph
  2. GIRAPH-192

Move aggregators to a separate sub-package

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: examples
    • Labels:
      None

      Description

      Since aggregators will be re-used throughout many projects and algorithms, it makes sense to implement the most common ones in a separate sub-package. This will reduce the time required for users when they implement their projects based on Giraph, because the required aggregators are already in place. I implemented the following ones:
      for int/long/float/double: min, max, product, sum, overwrite
      for boolean: and, or, overwrite

      Most of them speak for themselves, except for the overwrite one. This aggregator simply overwrites the stored value when a new value is aggregated. This is useful when one node is in some way a master node (for example a source node in an routing algorithm), and this node wants to broadcast a value to all other nodes.

      Attached is a patch against trunk implementing the aggregators and patching some existing files so they use the .aggregators package instead of the .examples one.

        Attachments

        1. GIRAPH-192.patch
          91 kB
          Jan van der Lugt
        2. GIRAPH-192.patch
          90 kB
          Jan van der Lugt
        3. GIRAPH-192.patch
          86 kB
          Jan van der Lugt
        4. GIRAPH-192.patch
          60 kB
          Jan van der Lugt

          Activity

            People

            • Assignee:
              janlugt Jan van der Lugt
              Reporter:
              janlugt Jan van der Lugt
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified