public class StandardListObjectInspector extends Object implements SettableListObjectInspector
ObjectInspector.Category| Modifier | Constructor and Description |
|---|---|
protected |
StandardListObjectInspector() |
protected |
StandardListObjectInspector(ObjectInspector listElementObjectInspector)
Call ObjectInspectorFactory.getStandardListObjectInspector instead.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
create(int size)
Create a list with the given size.
|
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
List<?> |
getList(Object data)
returns null for data = null.
|
Object |
getListElement(Object data,
int index)
returns null for null list, out-of-the-range index.
|
ObjectInspector |
getListElementObjectInspector() |
int |
getListLength(Object data)
returns -1 for data = null.
|
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
Object |
resize(Object list,
int newSize)
Resize the list.
|
Object |
set(Object list,
int index,
Object element)
Set the element at index.
|
protected StandardListObjectInspector()
protected StandardListObjectInspector(ObjectInspector listElementObjectInspector)
public final ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic ObjectInspector getListElementObjectInspector()
getListElementObjectInspector in interface ListObjectInspectorpublic Object getListElement(Object data, int index)
ListObjectInspectorgetListElement in interface ListObjectInspectorpublic int getListLength(Object data)
ListObjectInspectorgetListLength in interface ListObjectInspectorpublic List<?> getList(Object data)
ListObjectInspectorgetList in interface ListObjectInspectorpublic String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic Object create(int size)
SettableListObjectInspectorcreate in interface SettableListObjectInspectorpublic Object resize(Object list, int newSize)
SettableListObjectInspectorresize in interface SettableListObjectInspectorpublic Object set(Object list, int index, Object element)
SettableListObjectInspectorset in interface SettableListObjectInspectorCopyright © 2017 The Apache Software Foundation. All rights reserved.