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. |
java.util.List<ExecJob> |
executeScript(java.lang.Iterable<PigScript> scripts)
Executes multiple scripts that result in a list of job executions.
|
java.util.List<ExecJob> |
executeScript(PigScript script)
Executes the given script identified by location and arguments that results in a list of job executions.
|
java.util.List<ExecJob> |
executeScript(java.lang.String script)
Executes the given Pig Latin that results in a list of job executions.
|
java.util.List<ExecJob> |
executeScript(java.lang.String script,
java.util.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 - exceptionjava.util.List<ExecJob> executeScript(java.lang.String script) throws DataAccessException
script - script URL or pig latin statementDataAccessException - exceptionjava.util.List<ExecJob> executeScript(java.lang.String script, java.util.Map<?,?> arguments) throws DataAccessException
script - script URL or pig latin statementarguments - script argumentsDataAccessException - exceptionjava.util.List<ExecJob> executeScript(PigScript script) throws DataAccessException
script - script location and argumentsDataAccessException - exceptionjava.util.List<ExecJob> executeScript(java.lang.Iterable<PigScript> scripts) throws DataAccessException
scripts - scripts location and argumentsDataAccessException - exception