public class StandardUnionObjectInspector extends SettableUnionObjectInspector
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| Modifier | Constructor and Description |
|---|---|
protected |
StandardUnionObjectInspector() |
|
StandardUnionObjectInspector(List<ObjectInspector> ois) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create() |
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.
|
Object |
setFieldAndTag(Object union,
Object field,
byte tag) |
String |
toString() |
protected StandardUnionObjectInspector()
public StandardUnionObjectInspector(List<ObjectInspector> ois)
public List<ObjectInspector> getObjectInspectors()
UnionObjectInspectorpublic byte getTag(Object o)
public Object getField(Object o)
public ObjectInspector.Category getCategory()
ObjectInspectorpublic String getTypeName()
ObjectInspectorpublic Object create()
create in class SettableUnionObjectInspectorpublic Object setFieldAndTag(Object union, Object field, byte tag)
setFieldAndTag in class SettableUnionObjectInspectorCopyright © 2019 The Apache Software Foundation. All Rights Reserved.