org.apache.hadoop.hive.serde2.objectinspector
Interface UnionObjectInspector

All Superinterfaces:
Cloneable, ObjectInspector
All Known Implementing Classes:
DelegatedUnionObjectInspector, LazyUnionObjectInspector, StandardUnionObjectInspector

public interface UnionObjectInspector
extends ObjectInspector

UnionObjectInspector works on union data that is stored as UnionObject. It holds the list of the object inspectors corresponding to each type of the object the Union can hold. UnionObjectInspector.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Method Summary
 Object getField(Object o)
          Return the field based on the tag associated with the Object.
 List<ObjectInspector> getObjectInspectors()
          Returns the array of ObjectInspectors that are for each of the tags.
 byte getTag(Object o)
          Return the tag of the object.
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getObjectInspectors

List<ObjectInspector> getObjectInspectors()
Returns the array of ObjectInspectors that are for each of the tags.


getTag

byte getTag(Object o)
Return the tag of the object.


getField

Object getField(Object o)
Return the field based on the tag associated with the Object.



Copyright © 2012 The Apache Software Foundation