MCPcopy Create free account
hub / github.com/apache/orc / getStringAsList

Method getStringAsList

java/core/src/java/org/apache/orc/OrcConf.java:366–379  ·  view source on GitHub ↗
(Configuration conf)

Source from the content-addressed store, hash-verified

364 }
365
366 public List<String> getStringAsList(Configuration conf) {
367 String value = getString(null, conf);
368 List<String> confList = new ArrayList<>();
369 if (value == null || value.isEmpty()) {
370 return confList;
371 }
372 for (String str: value.split(",")) {
373 String trimStr = str.trim();
374 if (!trimStr.isEmpty()) {
375 confList.add(trimStr);
376 }
377 }
378 return confList;
379 }
380
381 public void setString(Configuration conf, String value) {
382 conf.set(attribute, value);

Callers 2

testGetStringAsListMethod · 0.80
OptionsMethod · 0.80

Calls 2

getStringMethod · 0.95
addMethod · 0.65

Tested by 1

testGetStringAsListMethod · 0.64