|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.types.orc.OrcUtils
public class OrcUtils
Constructor Summary | |
---|---|
OrcUtils()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrcUtils()
Method Detail |
---|
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)
typeStr
- objs
-
public static org.apache.hadoop.hive.serde2.binarysortable.BinarySortableSerDe createBinarySerde(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)
typeInfo
-
public static Object convert(Object from, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector fromOi, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector toOi)
from
- fromOi
- toOi
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |