public final class HiveMLUDF
extends org.apache.hadoop.hive.ql.udf.generic.GenericUDF
Modifier and Type | Field and Description |
---|---|
static String |
UDF_NAME
The Constant UDF_NAME.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.hive.ql.exec.MapredContext context) |
Object |
evaluate(org.apache.hadoop.hive.ql.udf.generic.GenericUDF.DeferredObject[] deferredObjects) |
String |
getDisplayString(String[] strings) |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
initialize(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] objectInspectors)
Currently we only support double as the return value.
|
public static final String UDF_NAME
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector initialize(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] objectInspectors) throws org.apache.hadoop.hive.ql.exec.UDFArgumentException
initialize
in class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
objectInspectors
- the object inspectorsorg.apache.hadoop.hive.ql.exec.UDFArgumentException
- the UDF argument exceptionpublic Object evaluate(org.apache.hadoop.hive.ql.udf.generic.GenericUDF.DeferredObject[] deferredObjects) throws org.apache.hadoop.hive.ql.metadata.HiveException
evaluate
in class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
org.apache.hadoop.hive.ql.metadata.HiveException
public String getDisplayString(String[] strings)
getDisplayString
in class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
public void configure(org.apache.hadoop.hive.ql.exec.MapredContext context)
configure
in class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.