org.apache.pig.impl.builtin
Class ShellBagEvalFunc
java.lang.Object
org.apache.pig.EvalFunc<DataBag>
org.apache.pig.impl.builtin.ShellBagEvalFunc
public class ShellBagEvalFunc
- extends EvalFunc<DataBag>
Method Summary |
void |
exec(Tuple input,
DataBag output)
This callback method must be implemented by all subclasses. |
void |
finish()
Placeholder for cleanup to be performed at the end. |
boolean |
isAsynchronous()
This function should be overriden to return true for functions that return their values
asynchronously. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShellBagEvalFunc
public ShellBagEvalFunc(String cmd)
exec
public void exec(Tuple input,
DataBag output)
throws IOException
- Description copied from class:
EvalFunc
- This callback method must be implemented by all subclasses. This
is the method that will be invoked on every Tuple of a given dataset.
Since the dataset may be divided up in a variety of ways the programmer
should not make assumptions about state that is maintained between
invocations of this method.
- Specified by:
exec
in class EvalFunc<DataBag>
- Parameters:
input
- the Tuple to be processed.
- Throws:
IOException
finish
public void finish()
- Description copied from class:
EvalFunc
- Placeholder for cleanup to be performed at the end. User defined functions can override.
- Overrides:
finish
in class EvalFunc<DataBag>
isAsynchronous
public boolean isAsynchronous()
- Description copied from class:
EvalFunc
- This function should be overriden to return true for functions that return their values
asynchronously.
- Overrides:
isAsynchronous
in class EvalFunc<DataBag>
- Returns:
Copyright © ${year} The Apache Software Foundation