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

Method initializeImportList

src/org/apache/pig/impl/PigContext.java:294–307  ·  view source on GitHub ↗
(String importListCommandLineProperties)

Source from the content-addressed store, hash-verified

292 }
293
294 public static void initializeImportList(String importListCommandLineProperties)
295 {
296 StringTokenizer tokenizer = new StringTokenizer(importListCommandLineProperties, ":");
297 int pos = 1; // Leave "" as the first import
298 ArrayList<String> importList = getPackageImportList();
299 while (tokenizer.hasMoreTokens())
300 {
301 String importItem = tokenizer.nextToken();
302 if (!importItem.endsWith("."))
303 importItem += ".";
304 importList.add(pos, importItem);
305 pos++;
306 }
307 }
308
309 public void connect() throws ExecException {
310 executionEngine.init();

Callers 2

testImportListMethod · 0.95
initMethod · 0.95

Calls 2

getPackageImportListMethod · 0.95
addMethod · 0.65

Tested by 1

testImportListMethod · 0.76