org.apache.hadoop.hive.serde2.lazybinary.objectinspector
Class LazyBinaryListObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector
      extended by org.apache.hadoop.hive.serde2.lazybinary.objectinspector.LazyBinaryListObjectInspector
All Implemented Interfaces:
Cloneable, ListObjectInspector, ObjectInspector, SettableListObjectInspector

public class LazyBinaryListObjectInspector
extends StandardListObjectInspector

ObjectInspector for LazyBinaryList.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
protected LazyBinaryListObjectInspector(ObjectInspector listElementObjectInspector)
           
 
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.
 int getListLength(Object data)
          returns -1 for data = null.
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector
create, getCategory, getListElementObjectInspector, getTypeName, resize, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyBinaryListObjectInspector

protected LazyBinaryListObjectInspector(ObjectInspector listElementObjectInspector)
Method Detail

getList

public List<?> getList(Object data)
Description copied from interface: ListObjectInspector
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.

Specified by:
getList in interface ListObjectInspector
Overrides:
getList in class StandardListObjectInspector

getListElement

public Object getListElement(Object data,
                             int index)
Description copied from interface: ListObjectInspector
returns null for null list, out-of-the-range index.

Specified by:
getListElement in interface ListObjectInspector
Overrides:
getListElement in class StandardListObjectInspector

getListLength

public int getListLength(Object data)
Description copied from interface: ListObjectInspector
returns -1 for data = null.

Specified by:
getListLength in interface ListObjectInspector
Overrides:
getListLength in class StandardListObjectInspector


Copyright © 2012 The Apache Software Foundation