org.apache.hadoop.hive.serde2.lazybinary.objectinspector
Class LazyBinaryMapObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.StandardMapObjectInspector
org.apache.hadoop.hive.serde2.lazybinary.objectinspector.LazyBinaryMapObjectInspector
- All Implemented Interfaces:
- Cloneable, MapObjectInspector, ObjectInspector, SettableMapObjectInspector
public class LazyBinaryMapObjectInspector
- extends StandardMapObjectInspector
ObjectInspector for LazyBinaryMap.
- See Also:
LazyBinaryMap
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyBinaryMapObjectInspector
protected LazyBinaryMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector)
getMap
public Map<?,?> getMap(Object data)
- Description copied from interface:
MapObjectInspector
- 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.
- Specified by:
getMap
in interface MapObjectInspector
- Overrides:
getMap
in class StandardMapObjectInspector
getMapSize
public int getMapSize(Object data)
- Description copied from interface:
MapObjectInspector
- returns -1 for NULL map.
- Specified by:
getMapSize
in interface MapObjectInspector
- Overrides:
getMapSize
in class StandardMapObjectInspector
getMapValueElement
public Object getMapValueElement(Object data,
Object key)
- Specified by:
getMapValueElement
in interface MapObjectInspector
- Overrides:
getMapValueElement
in class StandardMapObjectInspector
Copyright © 2010 The Apache Software Foundation