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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.parquet.serde.AbstractParquetMapInspector
      extended by org.apache.hadoop.hive.ql.io.parquet.serde.DeepParquetHiveMapInspector
All Implemented Interfaces:
Cloneable, MapObjectInspector, ObjectInspector, SettableMapObjectInspector

public class DeepParquetHiveMapInspector
extends AbstractParquetMapInspector

The DeepParquetHiveMapInspector will inspect an ArrayWritable, considering it as a Hive map.
It can also inspect a Map if Hive decides to inspect the result of an inspection.
When trying to access elements from the map it will iterate over all keys, inspecting them and comparing them to the desired key.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
DeepParquetHiveMapInspector(ObjectInspector keyInspector, ObjectInspector valueInspector)
           
 
Method Summary
 Object getMapValueElement(Object data, Object key)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.io.parquet.serde.AbstractParquetMapInspector
clear, create, equals, getCategory, getMap, getMapKeyObjectInspector, getMapSize, getMapValueObjectInspector, getTypeName, hashCode, put, remove
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeepParquetHiveMapInspector

public DeepParquetHiveMapInspector(ObjectInspector keyInspector,
                                   ObjectInspector valueInspector)
Method Detail

getMapValueElement

public Object getMapValueElement(Object data,
                                 Object key)


Copyright © 2014 The Apache Software Foundation. All rights reserved.