public class OrcUtils extends Object
Constructor and Description |
---|
OrcUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
convert(Object from,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector fromOi,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector toOi)
Convert an object from / to OrcStruct
|
static org.apache.hadoop.hive.serde2.binarysortable.BinarySortableSerDe |
createBinarySerde(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)
Create a binary serde for OrcStruct serialization/deserialization
|
static org.apache.hadoop.hive.ql.io.orc.OrcStruct |
createOrcStruct(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo,
Object... objs)
Create an object of OrcStruct given a type string and a list of objects
|
static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
getTypeInfo(Class<?> typeClass)
Generate TypeInfo for a given java class based on reflection
|
public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo(Class<?> typeClass)
typeClass
- public static org.apache.hadoop.hive.ql.io.orc.OrcStruct createOrcStruct(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo, Object... objs)
typeInfo
- objs
- public static org.apache.hadoop.hive.serde2.binarysortable.BinarySortableSerDe createBinarySerde(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)
typeInfo
- Copyright © 2015 The Apache Software Foundation. All Rights Reserved.