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 activePigServer. | 
T doInPig(PigServer pig) throws ExecException, 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 APIIOException - if thrown by Pig API