public abstract class BaseStructObjectInspector extends StructObjectInspector
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseStructObjectInspector.MyField |
ObjectInspector.Category
Modifier and Type | Field and Description |
---|---|
protected List<BaseStructObjectInspector.MyField> |
fields |
Modifier | Constructor and Description |
---|---|
protected |
BaseStructObjectInspector() |
|
BaseStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors)
Call ObjectInspectorFactory.getLazySimpleStructObjectInspector instead.
|
|
BaseStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
List<String> structFieldComments) |
Modifier and Type | Method and Description |
---|---|
protected BaseStructObjectInspector.MyField |
createField(int index,
String fieldName,
ObjectInspector fieldOI,
String comment) |
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.
|
StructField |
getStructFieldRef(String fieldName)
Look up a field.
|
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
protected void |
init(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
List<String> structFieldComments) |
protected void |
init(List<StructField> structFields) |
getStructFieldData, getStructFieldsDataAsList, isSettable, toString
protected final List<BaseStructObjectInspector.MyField> fields
protected BaseStructObjectInspector()
public BaseStructObjectInspector(List<String> structFieldNames, List<ObjectInspector> structFieldObjectInspectors)
protected void init(List<String> structFieldNames, List<ObjectInspector> structFieldObjectInspectors, List<String> structFieldComments)
protected void init(List<StructField> structFields)
protected BaseStructObjectInspector.MyField createField(int index, String fieldName, ObjectInspector fieldOI, String comment)
public String getTypeName()
ObjectInspector
public final ObjectInspector.Category getCategory()
ObjectInspector
public StructField getStructFieldRef(String fieldName)
StructObjectInspector
getStructFieldRef
in class StructObjectInspector
public List<? extends StructField> getAllStructFieldRefs()
StructObjectInspector
getAllStructFieldRefs
in class StructObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.