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()
ObjectInspector
getTypeName
in interface ObjectInspector
public ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public ObjectInspector getListElementObjectInspector()
getListElementObjectInspector
in interface ListObjectInspector
public Object getListElement(Object data, int index)
ListObjectInspector
getListElement
in interface ListObjectInspector
public int getListLength(Object data)
ListObjectInspector
getListLength
in interface ListObjectInspector
public List<?> getList(Object data)
ListObjectInspector
getList
in interface ListObjectInspector
public Object create(int size)
SettableListObjectInspector
create
in interface SettableListObjectInspector
public Object set(Object list, int index, Object element)
SettableListObjectInspector
set
in interface SettableListObjectInspector
public Object resize(Object list, int newSize)
SettableListObjectInspector
resize
in interface SettableListObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.