org.apache.hadoop.hive.serde2.objectinspector
Interface MapObjectInspector
- All Superinterfaces:
- ObjectInspector
- All Known Implementing Classes:
- LazyBinaryMapObjectInspector, LazyMapObjectInspector, StandardMapObjectInspector
public interface MapObjectInspector
- extends ObjectInspector
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 © 2009 The Apache Software Foundation