MCPcopy Create free account
hub / github.com/apache/impala / print

Method print

fe/src/main/java/org/apache/impala/util/Graph.java:37–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 public abstract IntIterator dstIter(int srcVid);
36
37 public String print() {
38 StringBuilder sb = new StringBuilder();
39 for (int i = 0; i < numVertices(); ++i) {
40 IntIterator dstIter = dstIter(i);
41 if (!dstIter.hasNext()) continue;
42 sb.append(i).append(" => ");
43 while (dstIter.hasNext()) {
44 sb.append(dstIter.next()).append(", ");
45 }
46 sb.append('\n');
47 }
48 return sb.toString();
49 }
50
51 /**
52 * Helper function collecting all the indexes set in a bitset into an sorted array.

Callers 5

PrintMethod · 0.45
GetIRMethod · 0.45
DiagnosticHandlerFnMethod · 0.45
PrintMethod · 0.45

Calls 6

numVerticesMethod · 0.95
dstIterMethod · 0.95
hasNextMethod · 0.95
nextMethod · 0.95
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected