This project has retired. For details please refer to its Attic page.
OrcUtils (Apache Crunch 0.11.0 API)

org.apache.crunch.types.orc
Class OrcUtils

java.lang.Object
  extended by org.apache.crunch.types.orc.OrcUtils

public class OrcUtils
extends Object


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

OrcUtils

public OrcUtils()
Method Detail

getTypeInfo

public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo(Class<?> typeClass)
Generate TypeInfo for a given java class based on reflection

Parameters:
typeClass -
Returns:

createOrcStruct

public 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

Parameters:
typeStr -
objs -
Returns:

createBinarySerde

public 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

Parameters:
typeInfo -
Returns:

convert

public 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

Parameters:
from -
fromOi -
toOi -
Returns:


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.