public class ThriftUnionObjectInspector extends ReflectionStructObjectInspector implements UnionObjectInspector
ReflectionStructObjectInspector.MyField
ObjectInspector.Category
Constructor and Description |
---|
ThriftUnionObjectInspector() |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Create a struct which is not null, but all its fields are null.
|
List<? extends StructField> |
getAllStructFieldRefs()
Returns all the fields.
|
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 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.
|
protected void |
init(Class<?> objectClass,
ObjectInspectorFactory.ObjectInspectorOptions options)
This method is only intended to be used by Utilities class in this package.
|
boolean |
shouldIgnoreField(String name) |
extractFieldObjectInspectors, getStructFieldData, getStructFieldRef, getStructFieldsDataAsList, setStructFieldData, verifyObjectClassType
isSettable
toString
public boolean shouldIgnoreField(String name)
shouldIgnoreField
in class ReflectionStructObjectInspector
public List<ObjectInspector> getObjectInspectors()
UnionObjectInspector
getObjectInspectors
in interface UnionObjectInspector
public byte getTag(Object o)
UnionObjectInspector
getTag
in interface UnionObjectInspector
public Object getField(Object o)
UnionObjectInspector
getField
in interface UnionObjectInspector
protected void init(Class<?> objectClass, ObjectInspectorFactory.ObjectInspectorOptions options)
init
in class ReflectionStructObjectInspector
public ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
getCategory
in class ReflectionStructObjectInspector
public List<? extends StructField> getAllStructFieldRefs()
StructObjectInspector
getAllStructFieldRefs
in class ReflectionStructObjectInspector
public String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
getTypeName
in class ReflectionStructObjectInspector
public Object create()
SettableStructObjectInspector
create
in class ReflectionStructObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.