public class UnionStructObjectInspector extends StructObjectInspector
Modifier and Type | Class and Description |
---|---|
static class |
UnionStructObjectInspector.MyField
MyField.
|
ObjectInspector.Category
Modifier | Constructor and Description |
---|---|
protected |
UnionStructObjectInspector() |
protected |
UnionStructObjectInspector(List<StructObjectInspector> unionObjectInspectors) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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 |
getStructFieldData(Object data,
StructField fieldRef)
returns null for data = null.
|
StructField |
getStructFieldRef(String fieldName)
Look up a field.
|
List<Object> |
getStructFieldsDataAsList(Object data)
returns null for data = null.
|
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
int |
hashCode() |
isSettable, toString
protected UnionStructObjectInspector()
protected UnionStructObjectInspector(List<StructObjectInspector> unionObjectInspectors)
public final ObjectInspector.Category getCategory()
ObjectInspector
public String getTypeName()
ObjectInspector
public StructField getStructFieldRef(String fieldName)
StructObjectInspector
getStructFieldRef
in class StructObjectInspector
public List<? extends StructField> getAllStructFieldRefs()
StructObjectInspector
getAllStructFieldRefs
in class StructObjectInspector
public Object getStructFieldData(Object data, StructField fieldRef)
StructObjectInspector
getStructFieldData
in class StructObjectInspector
public List<Object> getStructFieldsDataAsList(Object data)
StructObjectInspector
getStructFieldsDataAsList
in class StructObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.