org.apache.hadoop.hive.ql.udf.generic
Class GenericUDFUtils.StringHelper
java.lang.Object
org.apache.hadoop.hive.ql.udf.generic.GenericUDFUtils.StringHelper
- Enclosing class:
- GenericUDFUtils
public static class GenericUDFUtils.StringHelper
- extends Object
Helper class for UDFs returning string/varchar/char
GenericUDFUtils.StringHelper
public GenericUDFUtils.StringHelper(PrimitiveObjectInspector.PrimitiveCategory type)
throws UDFArgumentException
- Throws:
UDFArgumentException
setReturnValue
public Object setReturnValue(String val)
throws UDFArgumentException
- Throws:
UDFArgumentException
getFixedStringSizeForType
public static int getFixedStringSizeForType(PrimitiveObjectInspector poi)
throws UDFArgumentException
- Helper function to help GenericUDFs determine the return type
character length for char/varchar.
- Parameters:
poi
- PrimitiveObjectInspector representing the type
- Returns:
- character length of the type
- Throws:
UDFArgumentException
Copyright © 2014 The Apache Software Foundation. All rights reserved.