public interface PigCallback<T>
PigTemplate execute method, assumably often as anonymous classes within a method implementation.| Modifier and Type | Method and Description |
|---|---|
T |
doInPig(PigServer pig)
Gets called by
PigTemplate.execute(PigCallback) with an active PigServer. |
T doInPig(PigServer pig) throws ExecException, java.io.IOException
PigTemplate.execute(PigCallback) with an active PigServer. Does not need to care about activating or closing the PigServer, or handling exceptions.pig - active pig serverExecException - if thrown by Pig APIjava.io.IOException - if thrown by Pig API