org.apache.hadoop.hive.serde2.objectinspector
Interface MapObjectInspector

All Superinterfaces:
Cloneable, ObjectInspector
All Known Subinterfaces:
SettableMapObjectInspector
All Known Implementing Classes:
LazyBinaryMapObjectInspector, LazyMapObjectInspector, StandardConstantMapObjectInspector, StandardMapObjectInspector

public interface MapObjectInspector
extends ObjectInspector

MapObjectInspector.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Method Summary
 Map<?,?> getMap(Object data)
          returns null for data = null.
 ObjectInspector getMapKeyObjectInspector()
           
 int getMapSize(Object data)
          returns -1 for NULL map.
 Object getMapValueElement(Object data, Object key)
           
 ObjectInspector getMapValueObjectInspector()
           
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getMapKeyObjectInspector

ObjectInspector getMapKeyObjectInspector()

getMapValueObjectInspector

ObjectInspector getMapValueObjectInspector()

getMapValueElement

Object getMapValueElement(Object data,
                          Object key)

getMap

Map<?,?> getMap(Object data)
returns null for data = null. Note: This method should not return a Map object that is reused by the same MapObjectInspector, because it's possible that the same MapObjectInspector will be used in multiple places in the code. However it's OK if the Map object is part of the Object data.


getMapSize

int getMapSize(Object data)
returns -1 for NULL map.



Copyright © 2011 The Apache Software Foundation