throws IOException {
String line = value.toString();
try {
if (graphparser.isEdgeData(line)) {
Edge e = graphparser.parseEdge(line, vidparser, edataparser);
if (reduceEndPoint == EdgeTransformMR.SOURCE) {
val.init(e.target(), e.EdgeData());
out.collect((VidType) e.source(), val);
} else {
val.init(e.source(), e.EdgeData());
out.collect((VidType) e.target(), val);
}
} else {
LOG.error("Skip line: " + line);
}
} catch (Exception e) {
e.printStackTrace();
}
}