public class StandardUnionObjectInspector extends java.lang.Object implements UnionObjectInspector
ObjectInspectorFactory to create new ObjectInspector
objects, instead of directly creating an instance of this class.| Modifier and Type | Class and Description |
|---|---|
static class |
StandardUnionObjectInspector.StandardUnion |
ObjectInspector.Category| Constructor and Description |
|---|
StandardUnionObjectInspector(java.util.List<ObjectInspector> ois) |
| Modifier and Type | Method and Description |
|---|---|
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
java.lang.Object |
getField(java.lang.Object o)
Return the field based on the tag value associated with the Object.
|
java.util.List<ObjectInspector> |
getObjectInspectors()
Returns the array of ObjectInspectors that are for each of the tags.
|
byte |
getTag(java.lang.Object o)
Return the tag of the object.
|
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
java.lang.String |
toString() |
public StandardUnionObjectInspector(java.util.List<ObjectInspector> ois)
public java.util.List<ObjectInspector> getObjectInspectors()
UnionObjectInspectorgetObjectInspectors in interface UnionObjectInspectorpublic byte getTag(java.lang.Object o)
getTag in interface UnionObjectInspectorpublic java.lang.Object getField(java.lang.Object o)
getField in interface UnionObjectInspectorpublic ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic java.lang.String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012 The Apache Software Foundation