Package org.apache.flink.test.iterative.nephele.customdanglingpagerank.types

Examples of org.apache.flink.test.iterative.nephele.customdanglingpagerank.types.VertexWithRank


  @Override
  public void combine(Iterable<VertexWithRank> recordsIterable, Collector<VertexWithRank> out) throws Exception {
    final Iterator<VertexWithRank> records = recordsIterable.iterator();
   
    VertexWithRank next = records.next();
    this.accumulator.setVertexID(next.getVertexID());
    double rank = next.getRank();
   
    while (records.hasNext()) {
      rank += records.next().getRank();
    }
   
View Full Code Here

TOP

Related Classes of org.apache.flink.test.iterative.nephele.customdanglingpagerank.types.VertexWithRank

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.