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()
UnionObjectInspector
getObjectInspectors
in interface UnionObjectInspector
public byte getTag(java.lang.Object o)
getTag
in interface UnionObjectInspector
public java.lang.Object getField(java.lang.Object o)
getField
in interface UnionObjectInspector
public ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public java.lang.String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012 The Apache Software Foundation