|
|||||||||
| 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. |
|
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. |
|
| Method Detail |
|---|
<T> T execute(PigCallback<T> action)
throws DataAccessException
PigServer.
action - callback object that specifies the Hive action
DataAccessException
List<ExecJob> executeScript(String script)
throws DataAccessException
script - script URL or pig latin statement
DataAccessException
List<ExecJob> executeScript(String script,
Map<?,?> arguments)
throws DataAccessException
script - script URL or pig latin statementarguments - script arguments
DataAccessException
List<ExecJob> executeScript(PigScript script)
throws DataAccessException
script - script location and arguments
DataAccessException
List<ExecJob> executeScript(Iterable<PigScript> scripts)
throws DataAccessException
scripts - scripts location and arguments
DataAccessException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||