datafu.pig.bags
Class FirstTupleFromBag

java.lang.Object
  extended by org.apache.pig.EvalFunc<java.lang.Object>
      extended by datafu.pig.bags.FirstTupleFromBag

public class FirstTupleFromBag
extends org.apache.pig.EvalFunc<java.lang.Object>


Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
FirstTupleFromBag()
           
 
Method Summary
 java.lang.Object exec(org.apache.pig.data.Tuple input)
           
 org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
           
 
Methods inherited from class org.apache.pig.EvalFunc
finish, getArgToFuncMapping, getCacheFiles, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, progress, setPigLogger, setReporter, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirstTupleFromBag

public FirstTupleFromBag()
Method Detail

exec

public java.lang.Object exec(org.apache.pig.data.Tuple input)
                      throws java.io.IOException
Specified by:
exec in class org.apache.pig.EvalFunc<java.lang.Object>
Throws:
java.io.IOException

outputSchema

public org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
Overrides:
outputSchema in class org.apache.pig.EvalFunc<java.lang.Object>


Matthew Hayes, Sam Shah