org.apache.hadoop.hive.ql.udf.generic
Class GenericUDFBaseUnary

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDF
      extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseUnary
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
GenericUDFOPNegative, GenericUDFOPPositive

public abstract class GenericUDFBaseUnary
extends GenericUDF


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
 
Field Summary
protected  ByteWritable byteWritable
           
protected  ObjectInspectorConverters.Converter converter
           
protected  HiveDecimalWritable decimalWritable
           
protected  DoubleWritable doubleWritable
           
protected  org.apache.hadoop.io.FloatWritable floatWritable
           
protected  org.apache.hadoop.io.IntWritable intWritable
           
protected  org.apache.hadoop.io.LongWritable longWritable
           
protected  String opDisplayName
           
protected  String opName
           
protected  PrimitiveObjectInspector resultOI
           
protected  ShortWritable shortWritable
           
 
Constructor Summary
GenericUDFBaseUnary()
           
 
Method Summary
 String getDisplayString(String[] children)
          Get the String to be displayed in explain.
 ObjectInspector initialize(ObjectInspector[] arguments)
          Initialize this GenericUDF.
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
close, configure, copyToNewInstance, evaluate, flip, getRequiredFiles, getRequiredJars, getUdfName, initializeAndFoldConstants
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opName

protected String opName

opDisplayName

protected String opDisplayName

resultOI

protected transient PrimitiveObjectInspector resultOI

converter

protected transient ObjectInspectorConverters.Converter converter

byteWritable

protected ByteWritable byteWritable

shortWritable

protected ShortWritable shortWritable

intWritable

protected org.apache.hadoop.io.IntWritable intWritable

longWritable

protected org.apache.hadoop.io.LongWritable longWritable

floatWritable

protected org.apache.hadoop.io.FloatWritable floatWritable

doubleWritable

protected DoubleWritable doubleWritable

decimalWritable

protected HiveDecimalWritable decimalWritable
Constructor Detail

GenericUDFBaseUnary

public GenericUDFBaseUnary()
Method Detail

initialize

public ObjectInspector initialize(ObjectInspector[] arguments)
                           throws UDFArgumentException
Description copied from class: GenericUDF
Initialize this GenericUDF. This will be called once and only once per GenericUDF instance.

Specified by:
initialize in class GenericUDF
Parameters:
arguments - The ObjectInspector for the arguments
Returns:
The ObjectInspector for the return value
Throws:
UDFArgumentException - Thrown when arguments have wrong types, wrong length, etc.

getDisplayString

public String getDisplayString(String[] children)
Description copied from class: GenericUDF
Get the String to be displayed in explain.

Specified by:
getDisplayString in class GenericUDF


Copyright © 2014 The Apache Software Foundation. All rights reserved.