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()
UnionObjectInspector
public byte getTag(Object o)
public Object getField(Object o)
public ObjectInspector.Category getCategory()
ObjectInspector
public String getTypeName()
ObjectInspector
public Object create()
create
in class SettableUnionObjectInspector
public Object setFieldAndTag(Object union, Object field, byte tag)
setFieldAndTag
in class SettableUnionObjectInspector
Copyright © 2022 The Apache Software Foundation. All rights reserved.