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
org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
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 classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category |
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector |
isSettable, toString |
TupleObjectInspector
public TupleObjectInspector(TupleFactory<T> tupleFactory,
PType... ptypes)
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.