org.apache.hadoop.hive.serde2.objectinspector
Interface SettableListObjectInspector
- All Superinterfaces:
- Cloneable, ListObjectInspector, ObjectInspector
- All Known Implementing Classes:
- LazyBinaryListObjectInspector, StandardListObjectInspector
public interface SettableListObjectInspector
- extends ListObjectInspector
SettableListObjectInspector.
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 © 2010 The Apache Software Foundation