public final class GenericUDFUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GenericUDFUtils.ConversionHelper
Convert parameters for the method if needed.
|
static class |
GenericUDFUtils.ReturnObjectInspectorResolver
This class helps to find the return ObjectInspector for a GenericUDF.
|
static class |
GenericUDFUtils.StringHelper
Helper class for UDFs returning string/varchar/char
|
Modifier and Type | Method and Description |
---|---|
static TypeInfo |
deriveInType(List<ExprNodeDesc> children) |
static int |
findText(org.apache.hadoop.io.Text text,
org.apache.hadoop.io.Text subtext,
int start)
Finds any occurence of
subtext from text in the
backing buffer. |
static String |
getOrdinal(int i)
Return an ordinal from an integer.
|
static boolean |
isUtfStartByte(byte b)
Checks if b is the first byte of a UTF-8 character.
|
protected static TypeInfo |
updateCommonTypeForDecimal(TypeInfo commonTypeInfo,
TypeInfo ti,
TypeInfo returnType) |
public static boolean isUtfStartByte(byte b)
protected static TypeInfo updateCommonTypeForDecimal(TypeInfo commonTypeInfo, TypeInfo ti, TypeInfo returnType)
public static TypeInfo deriveInType(List<ExprNodeDesc> children)
public static String getOrdinal(int i)
public static int findText(org.apache.hadoop.io.Text text, org.apache.hadoop.io.Text subtext, int start)
subtext
from text
in the
backing buffer.Copyright © 2016 The Apache Software Foundation. All rights reserved.