org.apache.hadoop.hive.serde2.objectinspector
Interface ListObjectInspector

All Superinterfaces:
Cloneable, ObjectInspector
All Known Subinterfaces:
SettableListObjectInspector
All Known Implementing Classes:
LazyBinaryListObjectInspector, LazyListObjectInspector, StandardConstantListObjectInspector, StandardListObjectInspector

public interface ListObjectInspector
extends ObjectInspector

ListObjectInspector.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Method Summary
 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.
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

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 © 2011 The Apache Software Foundation