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

Method join

src/org/apache/pig/impl/util/StringUtils.java:108–117  ·  view source on GitHub ↗
(AbstractCollection<String> s, String delimiter)

Source from the content-addressed store, hash-verified

106 }
107
108 public static String join(AbstractCollection<String> s, String delimiter) {
109 if (s.isEmpty()) return "";
110 Iterator<String> iter = s.iterator();
111 StringBuffer buffer = new StringBuffer(iter.next());
112 while (iter.hasNext()) {
113 buffer.append(delimiter);
114 buffer.append(iter.next());
115 }
116 return buffer.toString();
117 }
118
119
120 public static String[] getPathStrings(String commaSeparatedPaths) {

Callers 15

loadMethod · 0.95
storeScalarTypesMethod · 0.95
storeComplexTypesMethod · 0.95
storeScalarTypesMethod · 0.95
defaultSchemaMethod · 0.95
userSchemaMethod · 0.95
pushProjectionMethod · 0.95
PigTestMethod · 0.95
getActualResultsMethod · 0.95
assertOutputMethod · 0.95

Calls 6

iteratorMethod · 0.65
appendMethod · 0.65
isEmptyMethod · 0.45
nextMethod · 0.45
hasNextMethod · 0.45
toStringMethod · 0.45

Tested by 15

loadMethod · 0.76
storeScalarTypesMethod · 0.76
storeComplexTypesMethod · 0.76
storeScalarTypesMethod · 0.76
defaultSchemaMethod · 0.76
userSchemaMethod · 0.76
pushProjectionMethod · 0.76
PigTestMethod · 0.76
getActualResultsMethod · 0.76
assertOutputMethod · 0.76