public static class GenericUDFUtils.StringHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.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.
|
java.lang.Object |
setReturnValue(java.lang.String val) |
protected java.lang.Object returnValue
protected PrimitiveObjectInspector.PrimitiveCategory type
public StringHelper(PrimitiveObjectInspector.PrimitiveCategory type) throws UDFArgumentException
UDFArgumentExceptionpublic java.lang.Object setReturnValue(java.lang.String val)
throws UDFArgumentException
UDFArgumentExceptionpublic static int getFixedStringSizeForType(PrimitiveObjectInspector poi) throws UDFArgumentException
poi - PrimitiveObjectInspector representing the typeUDFArgumentExceptionCopyright © 2012 The Apache Software Foundation