public static class GenericUDFUtils.StringHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected Object |
returnValue |
protected PrimitiveObjectInspector.PrimitiveCategory |
type |
Constructor and Description |
---|
GenericUDFUtils.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 GenericUDFUtils.StringHelper(PrimitiveObjectInspector.PrimitiveCategory type) throws UDFArgumentException
UDFArgumentException
public Object setReturnValue(String val) throws UDFArgumentException
UDFArgumentException
public static int getFixedStringSizeForType(PrimitiveObjectInspector poi) throws UDFArgumentException
poi
- PrimitiveObjectInspector representing the typeUDFArgumentException
Copyright © 2017 The Apache Software Foundation. All rights reserved.