public class ParquetHiveArrayInspector extends Object implements SettableListObjectInspector
ObjectInspector.Category| Constructor and Description |
|---|
ParquetHiveArrayInspector(ObjectInspector arrayElementInspector) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(int size)
Create a list with the given size.
|
boolean |
equals(Object o) |
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
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.
|
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
int |
hashCode() |
Object |
resize(Object list,
int newSize)
Resize the list.
|
Object |
set(Object list,
int index,
Object element)
Set the element at index.
|
public ParquetHiveArrayInspector(ObjectInspector arrayElementInspector)
public String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic ObjectInspector getListElementObjectInspector()
getListElementObjectInspector in interface ListObjectInspectorpublic Object getListElement(Object data, int index)
ListObjectInspectorgetListElement in interface ListObjectInspectorpublic int getListLength(Object data)
ListObjectInspectorgetListLength in interface ListObjectInspectorpublic List<?> getList(Object data)
ListObjectInspectorgetList in interface ListObjectInspectorpublic Object create(int size)
SettableListObjectInspectorcreate in interface SettableListObjectInspectorpublic Object set(Object list, int index, Object element)
SettableListObjectInspectorset in interface SettableListObjectInspectorpublic Object resize(Object list, int newSize)
SettableListObjectInspectorresize in interface SettableListObjectInspectorCopyright © 2019 The Apache Software Foundation. All Rights Reserved.