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

Method call

src/org/apache/pig/scripting/BoundScript.java:335–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333 }
334
335 @Override
336 public PigStats call() throws Exception {
337 LOG.info("Query to run:\n" + query);
338 PigContext pc = scriptContext.getPigContext();
339 ScriptState scriptState = pc.getExecutionEngine().instantiateScriptState();
340 ScriptState.start(scriptState);
341 ScriptState.get().setScript(query);
342 ScriptState.get().registerListener(adaptor);
343 PigServer pigServer = new PigServer(ctx, true);
344 GruntParser grunt = new GruntParser(new StringReader(query), pigServer);
345 grunt.setInteractive(false);
346 try {
347 grunt.parseStopOnError(false);
348 } catch (ParseException e) {
349 throw new IOException("Failed to parse script", e);
350 }
351 return PigStats.get();
352 }
353 }
354
355}

Callers 7

jsCallMethod · 0.45
compileMethod · 0.45
evalfuncMethod · 0.45
filterfuncMethod · 0.45
schemaMethod · 0.45
get_output_schemaMethod · 0.45
pig.pyFile · 0.45

Calls 11

getExecutionEngineMethod · 0.95
startMethod · 0.95
getMethod · 0.95
setInteractiveMethod · 0.95
parseStopOnErrorMethod · 0.95
getMethod · 0.95
infoMethod · 0.80
setScriptMethod · 0.80
getPigContextMethod · 0.45
registerListenerMethod · 0.45

Tested by

no test coverage detected