public class ArrayWritableObjectInspector extends SettableStructObjectInspector
ObjectInspector.Category
Constructor and Description |
---|
ArrayWritableObjectInspector(StructTypeInfo rowTypeInfo) |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Create a struct which is not null, but all its fields are null.
|
boolean |
equals(Object obj) |
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 name)
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() |
Object |
setStructFieldData(Object struct,
StructField field,
Object fieldValue)
Modify the value of a field.
|
isSettable
toString
public ArrayWritableObjectInspector(StructTypeInfo rowTypeInfo)
public ObjectInspector.Category getCategory()
ObjectInspector
public String getTypeName()
ObjectInspector
public List<? extends StructField> getAllStructFieldRefs()
StructObjectInspector
getAllStructFieldRefs
in class StructObjectInspector
public Object getStructFieldData(Object data, StructField fieldRef)
StructObjectInspector
getStructFieldData
in class StructObjectInspector
public StructField getStructFieldRef(String name)
StructObjectInspector
getStructFieldRef
in class StructObjectInspector
public List<Object> getStructFieldsDataAsList(Object data)
StructObjectInspector
getStructFieldsDataAsList
in class StructObjectInspector
public Object create()
SettableStructObjectInspector
create
in class SettableStructObjectInspector
public Object setStructFieldData(Object struct, StructField field, Object fieldValue)
SettableStructObjectInspector
setStructFieldData
in class SettableStructObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.