public abstract class TypedOutputEvalFunc<OUT> extends EvalFunc<OUT>
OUT exec(Tuple input)method when writting a UDF that operates on multiple inputs from the Tuple.
EvalFunc.SchemaType| Modifier and Type | Field and Description |
|---|---|
protected Class<OUT> |
outTypeClass |
log, pigLogger, reporter, returnType| Constructor and Description |
|---|
TypedOutputEvalFunc() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCounterGroup()
Incremented counters will use this as the counter group.
|
Class<OUT> |
getOutputTypeClass() |
protected static <T> List<Class<?>> |
getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class.
|
protected static void |
safeIncrCounter(String group,
String name,
Long increment) |
protected void |
verifyInput(Tuple input,
int minimumSize) |
protected static void |
verifyUdfInput(String klass,
Tuple input,
int minimumSize)
Increment Hadoop counters for bad inputs which are either null or too small.
|
allowCompileTimeCalculation, exec, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnprotected void verifyInput(Tuple input, int minimumSize) throws IOException
IOExceptionprotected String getCounterGroup()
protected static <T> List<Class<?>> getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)
baseClass - the base classchildClass - the child classprotected static void verifyUdfInput(String klass, Tuple input, int minimumSize) throws IOException
klass - the name of the calling class, for recording purposesinput - the tuple passed to the UDF.minimumSize - the minimum size required of the tuple.IOExceptionCopyright © 2007-2017 The Apache Software Foundation