org.apache.hadoop.hive.ql.udf.generic
Class GenericUDFBaseCompare
java.lang.Object
org.apache.hadoop.hive.ql.udf.generic.GenericUDF
org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseCompare
- Direct Known Subclasses:
- GenericUDFOPEqual, GenericUDFOPEqualOrGreaterThan, GenericUDFOPEqualOrLessThan, GenericUDFOPGreaterThan, GenericUDFOPLessThan, GenericUDFOPNotEqual
public abstract class GenericUDFBaseCompare
- extends GenericUDF
GenericUDF Base Class for operations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
opName
protected String opName
opDisplayName
protected String opDisplayName
argumentOIs
protected ObjectInspector[] argumentOIs
conversionHelper
protected GenericUDFUtils.ReturnObjectInspectorResolver conversionHelper
compareOI
protected ObjectInspector compareOI
compareType
protected GenericUDFBaseCompare.CompareType compareType
converter0
protected ObjectInspectorConverters.Converter converter0
converter1
protected ObjectInspectorConverters.Converter converter1
soi0
protected StringObjectInspector soi0
soi1
protected StringObjectInspector soi1
ioi0
protected IntObjectInspector ioi0
ioi1
protected IntObjectInspector ioi1
loi0
protected LongObjectInspector loi0
loi1
protected LongObjectInspector loi1
byoi0
protected ByteObjectInspector byoi0
byoi1
protected ByteObjectInspector byoi1
boi0
protected BooleanObjectInspector boi0
boi1
protected BooleanObjectInspector boi1
result
protected final org.apache.hadoop.io.BooleanWritable result
GenericUDFBaseCompare
public GenericUDFBaseCompare()
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 © 2011 The Apache Software Foundation