| Modifier and Type | Class and Description |
|---|---|
static class |
HiveUDAF.Final |
static class |
HiveUDAF.Initial |
static class |
HiveUDAF.Intermediate |
protected static class |
HiveUDFBase.ConstantObjectInspectInfo |
protected static class |
HiveUDFBase.HiveReporter
A constant of Reporter type that does nothing.
|
EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description |
|---|
HiveUDAF(java.lang.String funcName) |
HiveUDAF(java.lang.String funcName,
java.lang.String params) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
protected static java.lang.String |
getErrorMessage(java.lang.Class c) |
java.lang.String |
getFinal()
Get the final function.
|
java.lang.String |
getInitial()
Get the initial function.
|
java.lang.String |
getIntermed()
Get the intermediate function.
|
java.util.List<java.lang.String> |
getShipFiles()
Allow a UDF to specify a list of local files it would like placed in the distributed
cache.
|
protected static org.apache.hadoop.hive.ql.exec.MapredContext |
instantiateMapredContext() |
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
protected static java.lang.Class |
resolveFunc(java.lang.String funcName) |
addCredentials, allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic HiveUDAF(java.lang.String funcName)
throws java.io.IOException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.io.IOExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic HiveUDAF(java.lang.String funcName,
java.lang.String params)
throws java.io.IOException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.io.IOExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic java.lang.String getInitial()
AlgebraicgetInitial in interface Algebraicpublic java.lang.String getIntermed()
AlgebraicgetIntermed in interface Algebraicpublic java.lang.String getFinal()
Algebraicpublic java.lang.Object exec(Tuple input) throws java.io.IOException
EvalFuncpublic Schema outputSchema(Schema input)
EvalFunc
The default implementation interprets the OutputSchema annotation,
if one is present. Otherwise, it returns null (no known output schema).
outputSchema in class EvalFunc<java.lang.Object>input - Schema of the inputprotected static java.lang.Class resolveFunc(java.lang.String funcName)
throws java.io.IOException
java.io.IOExceptionprotected static org.apache.hadoop.hive.ql.exec.MapredContext instantiateMapredContext()
public java.util.List<java.lang.String> getShipFiles()
EvalFuncFuncUtils for utility function to facilitate it
The default implementation returns null.getShipFiles in class EvalFunc<java.lang.Object>protected static java.lang.String getErrorMessage(java.lang.Class c)
Copyright © 2007-2025 The Apache Software Foundation