Package com.intel.hadoop.graphbuilder.partition.mapreduce.keyvalue

Examples of com.intel.hadoop.graphbuilder.partition.mapreduce.keyvalue.CombinedEdgeValueType


    ((SimpleSubGraph) myGraph).setSubPid(pid % subpartPerPartition);

    LOG.info("Reduce edges for graph: " + pid);
    while (iter.hasNext()) {
      ValueType val = iter.next();
      CombinedEdgeValueType evalue = val.edgeValue();
      myGraph.addEdges(evalue.sources(), evalue.targets(), evalue.edata());
    }

    // Switch to GLGraph by uncommenting the next line.
    // GLJsonFormatter formatter = new GLJsonFormatter();
    SimpleJsonFormatter formatter = new SimpleJsonFormatter();
View Full Code Here


    ValType ret;
    try {
      ret = (ValType) valClass.newInstance();

      if (key.flag() == IngressKeyType.EDGEKEY) {
        CombinedEdgeValueType eval = ret.edgeValue();
        ret.reduce(IngressKeyType.EDGEKEY, iter);
        out.collect(key, ret);
      } else if (key.flag() == IngressKeyType.VERTEXKEY) {
        ret.reduce(IngressKeyType.VERTEXKEY, iter);
        out.collect(key, ret);
View Full Code Here

TOP

Related Classes of com.intel.hadoop.graphbuilder.partition.mapreduce.keyvalue.CombinedEdgeValueType

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.