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<org.apache.pig.backend.executionengine.ExecJob> |
executeScript(java.lang.Iterable<PigScript> scripts)
Executes multiple scripts that result in a list of job executions.
|
java.util.List<org.apache.pig.backend.executionengine.ExecJob> |
executeScript(PigScript script)
Executes the given script identified by location and arguments that results in a list of job executions.
|
java.util.List<org.apache.pig.backend.executionengine.ExecJob> |
executeScript(java.lang.String script)
Executes the given Pig Latin that results in a list of job executions.
|
java.util.List<org.apache.pig.backend.executionengine.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 org.springframework.dao.DataAccessException
PigServer
.T
- action typeaction
- callback object that specifies the Hive actionorg.springframework.dao.DataAccessException
- exceptionjava.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(java.lang.String script) throws org.springframework.dao.DataAccessException
script
- script URL or pig latin statementorg.springframework.dao.DataAccessException
- exceptionjava.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(java.lang.String script, java.util.Map<?,?> arguments) throws org.springframework.dao.DataAccessException
script
- script URL or pig latin statementarguments
- script argumentsorg.springframework.dao.DataAccessException
- exceptionjava.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(PigScript script) throws org.springframework.dao.DataAccessException
script
- script location and argumentsorg.springframework.dao.DataAccessException
- exceptionjava.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(java.lang.Iterable<PigScript> scripts) throws org.springframework.dao.DataAccessException
scripts
- scripts location and argumentsorg.springframework.dao.DataAccessException
- exception