javeme commented on code in PR #1864:
URL:
https://github.com/apache/incubator-hugegraph/pull/1864#discussion_r867352268
##########
hugegraph-example/src/main/java/com/baidu/hugegraph/example/GraphOfTheMoviesExample.java:
##########
@@ -44,31 +44,31 @@ public static void main(String[] args) {
long startTime = System.currentTimeMillis();
GraphOfTheMoviesExample.load(graph);
long endTime = System.currentTimeMillis();
- System.out.println(">>>> adding all vertices cost time(s): " +
+ LOG.info(">>>> adding all vertices cost time(s): {}",
(endTime - startTime) / 1000.0);
GraphOfTheMoviesExample.query(graph);
- System.out.println(">>>> perf: " + PerfUtil.instance().toECharts());
+ LOG.info(">>>> perf: {}", PerfUtil.instance().toECharts());
System.exit(0);
}
public static void query(HugeGraph graph) {
// query all vertices
- System.out.println(">>>> query all vertices");
+ LOG.info(">>>> query all vertices");
GraphTraversal<Vertex, Vertex> vertex = graph.traversal().V();
- System.out.println(">>>> query all vertices: size=" +
vertex.toList().size());
+ LOG.info(">>>> query all vertices: size= {}", vertex.toList().size());
// query all edges
GraphTraversal<Edge, Edge> edges = graph.traversal().E();
- System.out.println(">>>> query all edges: size=" +
edges.toList().size());
+ LOG.info(">>>> query all edges: size= {}", edges.toList().size());
// query edges by condition
List<Edge> tomhanksMovies = graph.traversal().V()
.hasLabel("person")
.has("name", "Tom Hanks")
.outE("ACTED_IN").toList();
- System.out.println(">>>> Tom Hanks ACTED_IN: " + tomhanksMovies);
+ LOG.info{(">>>> Tom Hanks ACTED_IN: {}", tomhanksMovies);
Review Comment:
remove "{"
--
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]