|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.objectinspector.StandardUnionObjectInspector
public class StandardUnionObjectInspector
StandardUnionObjectInspector 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. The UniobObject has tag followed by the object
it is holding.
Always use the ObjectInspectorFactory to create new ObjectInspector
objects, instead of directly creating an instance of this class.
| Nested Class Summary | |
|---|---|
static class |
StandardUnionObjectInspector.StandardUnion
|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
|---|
ObjectInspector.Category |
| Constructor Summary | |
|---|---|
StandardUnionObjectInspector(List<ObjectInspector> ois)
|
|
| 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 value 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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StandardUnionObjectInspector(List<ObjectInspector> ois)
| Method Detail |
|---|
public List<ObjectInspector> getObjectInspectors()
UnionObjectInspector
getObjectInspectors in interface UnionObjectInspectorpublic byte getTag(Object o)
getTag in interface UnionObjectInspectorpublic Object getField(Object o)
getField in interface UnionObjectInspectorpublic ObjectInspector.Category getCategory()
ObjectInspector
getCategory in interface ObjectInspectorpublic String getTypeName()
ObjectInspector
getTypeName in interface ObjectInspectorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||