public class GenericUDFExceptionInVertex extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject| Constructor and Description |
|---|
GenericUDFExceptionInVertex() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(MapredContext mapredContext)
Additionally setup GenericUDF with MapredContext before initializing.
|
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
static String |
getTaskAttemptNumber(ObjectInspector[] parameters,
int index) |
static String |
getTaskNumber(ObjectInspector[] parameters,
int index) |
static String |
getVertexName(ObjectInspector[] parameters,
int index) |
ObjectInspector |
initialize(ObjectInspector[] parameters)
Initialize this GenericUDF.
|
static boolean |
numberFitsExpression(int number,
String expression) |
adapt, checkArgGroups, checkArgPrimitive, checkArgsSize, close, copyToNewInstance, flip, getArgOrder, getConstantBooleanValue, getConstantIntValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntervalDayTimeValue, getIntervalYearMonthValue, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverterpublic ObjectInspector initialize(ObjectInspector[] parameters) throws UDFArgumentException
GenericUDFinitialize in class GenericUDFparameters - The ObjectInspector for the argumentsUDFArgumentException - Thrown when arguments have wrong types, wrong length, etc.public static String getVertexName(ObjectInspector[] parameters, int index) throws UDFArgumentTypeException
UDFArgumentTypeExceptionpublic static String getTaskNumber(ObjectInspector[] parameters, int index) throws UDFArgumentTypeException
UDFArgumentTypeExceptionpublic static String getTaskAttemptNumber(ObjectInspector[] parameters, int index) throws UDFArgumentTypeException
UDFArgumentTypeExceptionpublic static boolean numberFitsExpression(int number,
String expression)
public void configure(MapredContext mapredContext)
GenericUDFconfigure in class GenericUDFmapredContext - contextpublic Object evaluate(GenericUDF.DeferredObject[] arguments) throws HiveException
GenericUDFevaluate in class GenericUDFarguments - The arguments as DeferedObject, use DeferedObject.get() to get the
actual argument Object. The Objects can be inspected by the
ObjectInspectors passed in the initialize call.HiveExceptionpublic String getDisplayString(String[] children)
GenericUDFgetDisplayString in class GenericUDFCopyright © 2024 The Apache Software Foundation. All rights reserved.