|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PigOperations
Interface specifying a basic set of Pig operations. Implemented by PigTemplate.
Not often used directly, but a useful option to enhance testability, as it can easily be mocked or stubbed.
| Method Summary | ||
|---|---|---|
|
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. |
|
| Method Detail |
|---|
<T> T execute(PigCallback<T> action)
throws org.springframework.dao.DataAccessException
PigServer.
action - callback object that specifies the Hive action
org.springframework.dao.DataAccessException
java.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(java.lang.String script)
throws org.springframework.dao.DataAccessException
script - script URL or pig latin statement
org.springframework.dao.DataAccessException
java.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 arguments
org.springframework.dao.DataAccessException
java.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(PigScript script)
throws org.springframework.dao.DataAccessException
script - script location and arguments
org.springframework.dao.DataAccessException
java.util.List<org.apache.pig.backend.executionengine.ExecJob> executeScript(java.lang.Iterable<PigScript> scripts)
throws org.springframework.dao.DataAccessException
scripts - scripts location and arguments
org.springframework.dao.DataAccessException
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||