org.apache.hadoop.hive.serde2.objectinspector
Interface ListObjectInspector
- All Superinterfaces:
- ObjectInspector
- All Known Implementing Classes:
- LazyBinaryListObjectInspector, LazyListObjectInspector, StandardListObjectInspector
public interface ListObjectInspector
- extends ObjectInspector
getListElementObjectInspector
ObjectInspector getListElementObjectInspector()
getListElement
Object getListElement(Object data,
int index)
- returns null for null list, out-of-the-range index.
getListLength
int getListLength(Object data)
- returns -1 for data = null.
getList
List<?> getList(Object data)
- returns null for data = null.
Note: This method should not return a List object that is reused by the
same ListObjectInspector, because it's possible that the same
ListObjectInspector will be used in multiple places in the code.
However it's OK if the List object is part of the Object data.
Copyright © 2009 The Apache Software Foundation