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

org.apache.crunch.types.orc
Class TupleObjectInspector<T extends Tuple>

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
      extended by org.apache.crunch.types.orc.TupleObjectInspector<T>
All Implemented Interfaces:
Cloneable, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector

public class TupleObjectInspector<T extends Tuple>
extends org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector

An object inspector to define the structure of Crunch Tuples


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category
 
Constructor Summary
TupleObjectInspector(TupleFactory<T> tupleFactory, PType... ptypes)
           
 
Method Summary
 T create(Object... values)
           
 List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> getAllStructFieldRefs()
           
 org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category getCategory()
           
 Object getStructFieldData(Object data, org.apache.hadoop.hive.serde2.objectinspector.StructField fieldRef)
           
 org.apache.hadoop.hive.serde2.objectinspector.StructField getStructFieldRef(String fieldName)
           
 List<Object> getStructFieldsDataAsList(Object data)
           
 String getTypeName()
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
isSettable, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TupleObjectInspector

public TupleObjectInspector(TupleFactory<T> tupleFactory,
                            PType... ptypes)
Method Detail

getTypeName

public String getTypeName()

getCategory

public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category getCategory()

create

public T create(Object... values)

getAllStructFieldRefs

public List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> getAllStructFieldRefs()
Specified by:
getAllStructFieldRefs in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector

getStructFieldRef

public org.apache.hadoop.hive.serde2.objectinspector.StructField getStructFieldRef(String fieldName)
Specified by:
getStructFieldRef in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector

getStructFieldData

public Object getStructFieldData(Object data,
                                 org.apache.hadoop.hive.serde2.objectinspector.StructField fieldRef)
Specified by:
getStructFieldData in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector

getStructFieldsDataAsList

public List<Object> getStructFieldsDataAsList(Object data)
Specified by:
getStructFieldsDataAsList in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector


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