Examples of vid()


Examples of com.intel.hadoop.graphbuilder.graph.Vertex.vid()

    int split = 0;
    while (iter.hasNext()) {
      Vertex v = graphparser.parseVertex(iter.next().toString(), vidparser,
          vdataparser);
      long newId = baseid + splitsize * split;
      out.collect(new Text("vidmap"), new Text(newId + "\t" + v.vid()));
      out.collect(new Text("vdata"), new Text("!" + newId + "\t"
          + v.vdata().toString()));
      split++;
    }
  }
View Full Code Here

Examples of com.intel.hadoop.graphbuilder.partition.mapreduce.keyvalue.IngressKeyType.vid()

      Class valclass = IngressJobKeyValueFactory.getValueClassByClassName(
          TypeFactory.getClassName("string"), TypeFactory.getClassName("none"),
          TypeFactory.getClassName("int"));
      IngressKeyType key = (IngressKeyType) keyclass.newInstance();
      IngressValueType val = (IngressValueType) valclass.newInstance();
      assertEquals(key.vid().getClass(), StringType.class);
      assertEquals(val.getGraphTypeFactory().createVid().getClass(),
          StringType.class);
      assertEquals(val.getGraphTypeFactory().createVdata().getClass(),
          EmptyType.class);
      assertEquals(val.getGraphTypeFactory().createEdata().getClass(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.