public static class GenericUDFUtils.ReturnObjectInspectorResolver extends Object
Constructor and Description |
---|
GenericUDFUtils.ReturnObjectInspectorResolver() |
GenericUDFUtils.ReturnObjectInspectorResolver(boolean allowTypeConversion) |
Modifier and Type | Method and Description |
---|---|
Object |
convertIfNecessary(Object o,
ObjectInspector oi) |
Object |
convertIfNecessary(Object o,
ObjectInspector oi,
boolean reuse)
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.
|
ObjectInspector |
get(ObjectInspector defaultOI) |
boolean |
update(ObjectInspector oi)
Update returnObjectInspector and valueInspectorsAreTheSame based on the
ObjectInspector seen.
|
boolean |
updateForUnionAll(ObjectInspector oi)
Update returnObjectInspector and valueInspectorsAreTheSame based on the
ObjectInspector seen for UnionAll.
|
public GenericUDFUtils.ReturnObjectInspectorResolver()
public GenericUDFUtils.ReturnObjectInspectorResolver(boolean allowTypeConversion)
public boolean update(ObjectInspector oi) throws UDFArgumentTypeException
UDFArgumentTypeException
public boolean updateForUnionAll(ObjectInspector oi) throws UDFArgumentTypeException
UDFArgumentTypeException
public ObjectInspector get()
public ObjectInspector get(ObjectInspector defaultOI)
public Object convertIfNecessary(Object o, ObjectInspector oi)
public Object convertIfNecessary(Object o, ObjectInspector oi, boolean reuse)
Copyright © 2017 The Apache Software Foundation. All rights reserved.