public class FunctionWrapperEvalFunc extends PrimitiveEvalFunc<Object,Object>
 The Function must have a default no-arg constructor, which will be used. For Functions that
 take args in the constructor, initialize the function in a subclass of this one and call
 super(function).
 
 Example: DEFINE myUdf FunctionWrapperEvalFunc('MyFunction')
EvalFunc.SchemaTypeinTypeClassoutTypeClasslog, pigLogger, reporter, returnType| Modifier | Constructor and Description | 
|---|---|
| protected  | FunctionWrapperEvalFunc(ExceptionalFunction function)Determines the input and output types of the Function and initializes the superclass. | 
| protected  | FunctionWrapperEvalFunc(com.google.common.base.Function function)Determines the input and output types of the Function and initializes the superclass. | 
|   | FunctionWrapperEvalFunc(String functionClassName)Takes the class name of a Function, initializes it using the default constructor and passes
 it to FunctionWrapperEvalFunc(ExceptionalFunction function). | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | exec(Object input) | 
| protected String | getCounterGroup()Incremented counters will use this as the counter group. | 
exec, getInputTypeClassgetOutputTypeClass, getTypeArguments, safeIncrCounter, verifyInput, verifyUdfInputallowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic FunctionWrapperEvalFunc(String functionClassName) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, IOException
functionClassName - function class to initializeClassNotFoundExceptionNoSuchMethodExceptionIllegalAccessExceptionInstantiationExceptionIOExceptionprotected FunctionWrapperEvalFunc(com.google.common.base.Function function)
                           throws IOException,
                                  ClassNotFoundException,
                                  NoSuchMethodException
function - Function to be used by the UDF.IOExceptionClassNotFoundExceptionNoSuchMethodExceptionprotected FunctionWrapperEvalFunc(ExceptionalFunction function) throws IOException, ClassNotFoundException, NoSuchMethodException
function - Function to be used by the UDF.IOExceptionClassNotFoundExceptionNoSuchMethodExceptionpublic Object exec(Object input) throws IOException
exec in class PrimitiveEvalFunc<Object,Object>IOExceptionprotected String getCounterGroup()
TypedOutputEvalFuncgetCounterGroup in class TypedOutputEvalFunc<Object>Copyright © 2007-2017 The Apache Software Foundation