public class CustomNonSettableListObjectInspector1 extends java.lang.Object implements ListObjectInspector
ObjectInspector.Category
Modifier | Constructor and Description |
---|---|
protected |
CustomNonSettableListObjectInspector1(ObjectInspector listElementObjectInspector) |
Modifier and Type | Method and Description |
---|---|
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
java.util.List<?> |
getList(java.lang.Object data)
returns null for data = null.
|
java.lang.Object |
getListElement(java.lang.Object data,
int index)
returns null for null list, out-of-the-range index.
|
ObjectInspector |
getListElementObjectInspector() |
int |
getListLength(java.lang.Object data)
returns -1 for data = null.
|
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
protected CustomNonSettableListObjectInspector1(ObjectInspector listElementObjectInspector)
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public ObjectInspector getListElementObjectInspector()
getListElementObjectInspector
in interface ListObjectInspector
public java.lang.Object getListElement(java.lang.Object data, int index)
ListObjectInspector
getListElement
in interface ListObjectInspector
public int getListLength(java.lang.Object data)
ListObjectInspector
getListLength
in interface ListObjectInspector
public java.util.List<?> getList(java.lang.Object data)
ListObjectInspector
getList
in interface ListObjectInspector
public java.lang.String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
Copyright © 2012 The Apache Software Foundation