public interface PigCallback<T>
PigTemplate execute method, assumably often as anonymous classes within a method implementation.| Modifier and Type | Method and Description |
|---|---|
T |
doInPig(org.apache.pig.PigServer pig)
Gets called by
PigTemplate.execute(PigCallback) with an active PigServer. |
T doInPig(org.apache.pig.PigServer pig) throws org.apache.pig.backend.executionengine.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 serverorg.apache.pig.backend.executionengine.ExecException - if thrown by Pig APIjava.io.IOException - if thrown by Pig API