public interface PigOperations
PigTemplate.
 Not often used directly, but a useful option to enhance testability, as it can easily be mocked or stubbed.| Modifier and Type | Method and Description | 
|---|---|
| <T> T | execute(PigCallback<T> action)Executes the action specified by the given callback object within an active  PigServer. | 
| List<ExecJob> | executeScript(Iterable<PigScript> scripts)Executes multiple scripts that result in a list of job executions. | 
| List<ExecJob> | executeScript(PigScript script)Executes the given script identified by location and arguments that results in a list of job executions. | 
| List<ExecJob> | executeScript(String script)Executes the given Pig Latin that results in a list of job executions. | 
| List<ExecJob> | executeScript(String script,
             Map<?,?> arguments)Executes the given Pig Latin with arguments that results in a list of job executions. | 
<T> T execute(PigCallback<T> action) throws DataAccessException
PigServer.T - action typeaction - callback object that specifies the Hive actionDataAccessException - exceptionList<ExecJob> executeScript(String script) throws DataAccessException
script - script URL or pig latin statementDataAccessException - exceptionList<ExecJob> executeScript(String script, Map<?,?> arguments) throws DataAccessException
script - script URL or pig latin statementarguments - script argumentsDataAccessException - exceptionList<ExecJob> executeScript(PigScript script) throws DataAccessException
script - script location and argumentsDataAccessException - exceptionList<ExecJob> executeScript(Iterable<PigScript> scripts) throws DataAccessException
scripts - scripts location and argumentsDataAccessException - exception