org.apache.hadoop.hive.ql.io.parquet.serde
Class ParquetHiveArrayInspector
java.lang.Object
org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveArrayInspector
- All Implemented Interfaces:
- Cloneable, ListObjectInspector, ObjectInspector, SettableListObjectInspector
public class ParquetHiveArrayInspector
- extends Object
- implements SettableListObjectInspector
The ParquetHiveArrayInspector will inspect an ArrayWritable, considering it as an Hive array.
It can also inspect a List if Hive decides to inspect the result of an inspection.
ParquetHiveArrayInspector
public ParquetHiveArrayInspector(ObjectInspector arrayElementInspector)
getTypeName
public String getTypeName()
- Specified by:
getTypeName in interface ObjectInspector
getCategory
public ObjectInspector.Category getCategory()
- Specified by:
getCategory in interface ObjectInspector
getListElementObjectInspector
public ObjectInspector getListElementObjectInspector()
- Specified by:
getListElementObjectInspector in interface ListObjectInspector
getListElement
public Object getListElement(Object data,
int index)
- Specified by:
getListElement in interface ListObjectInspector
getListLength
public int getListLength(Object data)
- Specified by:
getListLength in interface ListObjectInspector
getList
public List<?> getList(Object data)
- Specified by:
getList in interface ListObjectInspector
create
public Object create(int size)
- Specified by:
create in interface SettableListObjectInspector
set
public Object set(Object list,
int index,
Object element)
- Specified by:
set in interface SettableListObjectInspector
resize
public Object resize(Object list,
int newSize)
- Specified by:
resize in interface SettableListObjectInspector
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014 The Apache Software Foundation. All rights reserved.