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

All Superinterfaces:
Cloneable, ListObjectInspector, ObjectInspector
All Known Implementing Classes:
LazyBinaryListObjectInspector, StandardConstantListObjectInspector, StandardListObjectInspector

public interface SettableListObjectInspector
extends ListObjectInspector

SettableListObjectInspector.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Method Summary
 Object create(int size)
          Create a list with the given size.
 Object resize(Object list, int newSize)
          Resize the list.
 Object set(Object list, int index, Object element)
          Set the element at index.
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ListObjectInspector
getList, getListElement, getListElementObjectInspector, getListLength
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

create

Object create(int size)
Create a list with the given size. All elements will be null. NOTE: This is different from ArrayList constructor where the argument is capacity. We decided to have size here to allow creation of Java array.


set

Object set(Object list,
           int index,
           Object element)
Set the element at index. Returns the list.


resize

Object resize(Object list,
              int newSize)
Resize the list. Returns the list. If the new size is bigger than the current size, new elements will be null. If the new size is smaller than the current size, elements at the end are truncated.



Copyright © 2012 The Apache Software Foundation