org.apache.hadoop.hive.ql.io.parquet.serde
Class ParquetHiveArrayInspector

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
ParquetHiveArrayInspector(ObjectInspector arrayElementInspector)
           
 
Method Summary
 Object create(int size)
           
 boolean equals(Object o)
           
 ObjectInspector.Category getCategory()
           
 List<?> getList(Object data)
           
 Object getListElement(Object data, int index)
           
 ObjectInspector getListElementObjectInspector()
           
 int getListLength(Object data)
           
 String getTypeName()
           
 int hashCode()
           
 Object resize(Object list, int newSize)
           
 Object set(Object list, int index, Object element)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParquetHiveArrayInspector

public ParquetHiveArrayInspector(ObjectInspector arrayElementInspector)
Method Detail

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.