imbajin commented on code in PR #358:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/pull/358#discussion_r1015498942


##########
hugegraph-loader/src/main/java/com/baidu/hugegraph/loader/builder/EdgeBuilder.java:
##########
@@ -109,6 +110,53 @@ public List<Edge> build(String[] names, Object[] values) {
         }
         return edges;
     }
+    
+    @Override
+    public List<Edge> build( Row row) {
+        String[] names = row.schema().fieldNames();
+        Object[] values = new Object[row.size()];
+        for (int i = 0; i < row.size(); i++) {
+            values[i] = row.get(i);
+        }
+        if (this.vertexIdsIndex == null ||
+                !Arrays.equals(this.lastNames, names)) {

Review Comment:
   in fact, one line seems also fine. (not too long)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to