org.apache.pig
Class FilterFunc

java.lang.Object
  extended by org.apache.pig.FilterFunc
Direct Known Subclasses:
IsEmpty

public abstract class FilterFunc
extends Object


Constructor Summary
FilterFunc()
           
 
Method Summary
abstract  boolean exec(Tuple input)
          This callback method must be implemented by all subclasses.
 void finish()
          Placeholder for cleanup to be performed at the end.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterFunc

public FilterFunc()
Method Detail

exec

public abstract boolean exec(Tuple input)
                      throws IOException
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.

Parameters:
input - the Tuple to be processed.
Throws:
IOException

finish

public void finish()
Placeholder for cleanup to be performed at the end. User defined functions can override.



Copyright © ${year} The Apache Software Foundation