|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.udf.generic.GenericUDFUtils
public final class GenericUDFUtils
Util functions for GenericUDF classes.
Nested Class Summary | |
---|---|
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 |
Method Summary | |
---|---|
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, for avoiding string encoding and decoding. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isUtfStartByte(byte b)
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, for avoiding string encoding and decoding. Shamelessly copy
from Text.find(String, int)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |