org.apache.hadoop.hive.serde2.objectinspector
Interface MapObjectInspector
- All Superinterfaces:
- Cloneable, ObjectInspector
- All Known Subinterfaces:
- SettableMapObjectInspector
- All Known Implementing Classes:
- DelegatedMapObjectInspector, LazyBinaryMapObjectInspector, LazyMapObjectInspector, StandardConstantMapObjectInspector, StandardMapObjectInspector
public interface MapObjectInspector
- extends ObjectInspector
MapObjectInspector.
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