MCPcopy Create free account
hub / github.com/apache/pig / AddSpaces

Method AddSpaces

src/org/apache/pig/pen/util/DisplayExamples.java:183–192  ·  view source on GitHub ↗
(int n, boolean printSpace)

Source from the content-addressed store, hash-verified

181 }
182
183 static String AddSpaces(int n, boolean printSpace) {
184 StringBuffer str = new StringBuffer();
185 for (int i = 0; i < n; ++i) {
186 if (printSpace)
187 str.append(" ");
188 else
189 str.append("-");
190 }
191 return str.toString();
192 }
193
194 static void DisplayTable(String[][] table, Operator op, DataBag bag,
195 StringBuffer output) throws FrontendException {

Callers 2

DisplayTableMethod · 0.95
DisplayNestedTableMethod · 0.95

Calls 2

appendMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected