|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.typeinfo.TypeInfoUtils
public class TypeInfoUtils
Constructor Summary | |
---|---|
TypeInfoUtils()
|
Method Summary | |
---|---|
static Type |
getArrayElementType(Type t)
Returns the array element type, if the Type is an array (Object[]), or GenericArrayType (Map |
static List<TypeInfo> |
getParameterTypeInfos(Method m,
int size)
Get the parameter TypeInfo for a method. |
static ObjectInspector |
getStandardJavaObjectInspectorFromTypeInfo(TypeInfo typeInfo)
Returns the standard object inspector that can be used to translate an object of that typeInfo to a standard object type. |
static ObjectInspector |
getStandardWritableObjectInspectorFromTypeInfo(TypeInfo typeInfo)
Returns the standard object inspector that can be used to translate an object of that typeInfo to a standard object type. |
static TypeInfo |
getTypeInfoFromObjectInspector(ObjectInspector oi)
Get the TypeInfo object from the ObjectInspector object by recursively going into the ObjectInspector structure. |
static TypeInfo |
getTypeInfoFromTypeString(String typeString)
|
static ArrayList<TypeInfo> |
getTypeInfosFromTypeString(String typeString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeInfoUtils()
Method Detail |
---|
public static Type getArrayElementType(Type t)
public static List<TypeInfo> getParameterTypeInfos(Method m, int size)
size
- In case the last parameter of Method is an array, we will try to return a
Listpublic static ObjectInspector getStandardWritableObjectInspectorFromTypeInfo(TypeInfo typeInfo)
public static ObjectInspector getStandardJavaObjectInspectorFromTypeInfo(TypeInfo typeInfo)
public static TypeInfo getTypeInfoFromObjectInspector(ObjectInspector oi)
public static ArrayList<TypeInfo> getTypeInfosFromTypeString(String typeString)
public static TypeInfo getTypeInfoFromTypeString(String typeString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |