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
UDFArgumentException
public java.lang.Object setReturnValue(java.lang.String val) throws UDFArgumentException
UDFArgumentException
public static int getFixedStringSizeForType(PrimitiveObjectInspector poi) throws UDFArgumentException
poi
- PrimitiveObjectInspector representing the typeUDFArgumentException
Copyright © 2012 The Apache Software Foundation