public static class GenericUDFUtils.StringHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
returnValue |
protected PrimitiveObjectInspector.PrimitiveCategory |
type |
| Constructor and Description |
|---|
StringHelper(PrimitiveObjectInspector.PrimitiveCategory type) |
| Modifier and Type | Method and Description |
|---|---|
static int |
getFixedStringSizeForType(PrimitiveObjectInspector poi)
Helper function to help GenericUDFs determine the return type
character length for char/varchar.
|
Object |
setReturnValue(String val) |
protected Object returnValue
protected PrimitiveObjectInspector.PrimitiveCategory type
public StringHelper(PrimitiveObjectInspector.PrimitiveCategory type) throws UDFArgumentException
UDFArgumentExceptionpublic Object setReturnValue(String val) throws UDFArgumentException
UDFArgumentExceptionpublic static int getFixedStringSizeForType(PrimitiveObjectInspector poi) throws UDFArgumentException
poi - PrimitiveObjectInspector representing the typeUDFArgumentExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.