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

SimplePageRankVertex has two redundant casts

    Details

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

      Description

              DoubleWritable maxPagerank =
                  (DoubleWritable) maxAggreg.getAggregatedValue();
              LOG.info("aggregatedMaxPageRank=" + maxPagerank.get());
              DoubleWritable minPagerank =
                  (DoubleWritable) minAggreg.getAggregatedValue();
              LOG.info("aggregatedMinPageRank=" + minPagerank.get());

      Both MinAggregator and MaxAggregator are already parameterized on DoubleWritable, so it's not necessary to cast their functions' results.

        Attachments

          Activity

            People

            • Assignee:
              devaraj.k Devaraj K
              Reporter:
              jghoman Jakob Homan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: