org.apache.hadoop.hive.serde2.objectinspector
Class DelegatedUnionObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.DelegatedUnionObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, UnionObjectInspector

public class DelegatedUnionObjectInspector
extends Object
implements UnionObjectInspector


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
DelegatedUnionObjectInspector(UnionObjectInspector delegate)
           
 
Method Summary
 ObjectInspector.Category getCategory()
          An ObjectInspector must inherit from one of the following interfaces if getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST: ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
 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.
 String getTypeName()
          Returns the name of the data type that is inspected by this ObjectInspector.
 void reset(UnionObjectInspector current)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatedUnionObjectInspector

public DelegatedUnionObjectInspector(UnionObjectInspector delegate)
Method Detail

reset

public void reset(UnionObjectInspector current)

getObjectInspectors

public List<ObjectInspector> getObjectInspectors()
Description copied from interface: UnionObjectInspector
Returns the array of ObjectInspectors that are for each of the tags.

Specified by:
getObjectInspectors in interface UnionObjectInspector

getTag

public byte getTag(Object o)
Description copied from interface: UnionObjectInspector
Return the tag of the object.

Specified by:
getTag in interface UnionObjectInspector

getField

public Object getField(Object o)
Description copied from interface: UnionObjectInspector
Return the field based on the tag associated with the Object.

Specified by:
getField in interface UnionObjectInspector

getTypeName

public String getTypeName()
Description copied from interface: ObjectInspector
Returns the name of the data type that is inspected by this ObjectInspector. This is used to display the type information to the user. For primitive types, the type name is standardized. For other types, the type name can be something like "list", "map", java class names, or user-defined type names similar to typedef.

Specified by:
getTypeName in interface ObjectInspector

getCategory

public ObjectInspector.Category getCategory()
Description copied from interface: ObjectInspector
An ObjectInspector must inherit from one of the following interfaces if getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST: ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.

Specified by:
getCategory in interface ObjectInspector


Copyright © 2011 The Apache Software Foundation