public class GenericUDFInFile extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject| Constructor and Description |
|---|
GenericUDFInFile() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
java.lang.String |
getDisplayString(java.lang.String[] children)
Get the String to be displayed in explain.
|
java.lang.String[] |
getRequiredFiles() |
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
void |
load(java.io.InputStream is)
Load the file from an InputStream.
|
close, configure, getRequiredJars, initializeAndFoldConstantspublic ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDFinitialize in class GenericUDFarguments - The ObjectInspector for the argumentsUDFArgumentException - Thrown when arguments have wrong types, wrong length, etc.public java.lang.String[] getRequiredFiles()
getRequiredFiles in class GenericUDFpublic java.lang.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 void load(java.io.InputStream is)
throws HiveException
is - The InputStream contains the file data.HiveExceptionpublic java.lang.String getDisplayString(java.lang.String[] children)
GenericUDFgetDisplayString in class GenericUDFCopyright © 2012 The Apache Software Foundation