public static class GenericUDFUtils.ReturnObjectInspectorResolver
extends java.lang.Object
Constructor and Description |
---|
ReturnObjectInspectorResolver() |
ReturnObjectInspectorResolver(boolean allowTypeConversion) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertIfNecessary(java.lang.Object o,
ObjectInspector oi)
Convert the return Object if necessary (when the ObjectInspectors of
different possibilities are not all the same).
|
ObjectInspector |
get()
Returns the ObjectInspector of the return value.
|
boolean |
update(ObjectInspector oi)
Update returnObjectInspector and valueInspectorsAreTheSame based on the
ObjectInspector seen.
|
public ReturnObjectInspectorResolver()
public ReturnObjectInspectorResolver(boolean allowTypeConversion)
public boolean update(ObjectInspector oi) throws UDFArgumentTypeException
UDFArgumentTypeException
public ObjectInspector get()
public java.lang.Object convertIfNecessary(java.lang.Object o, ObjectInspector oi)
Copyright © 2012 The Apache Software Foundation