org.apache.hadoop.hive.serde2.lazybinary.objectinspector
Class LazyBinaryMapObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.StandardMapObjectInspector
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
protected LazyBinaryMapObjectInspector(ObjectInspector mapKeyObjectInspector, ObjectInspector mapValueObjectInspector)
           
 
Method Summary
 Map<?,?> getMap(Object data)
          returns null for data = null.
 int getMapSize(Object data)
          returns -1 for NULL map.
 Object getMapValueElement(Object data, Object key)
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.StandardMapObjectInspector
clear, create, getCategory, getMapKeyObjectInspector, getMapValueObjectInspector, getTypeName, put, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyBinaryMapObjectInspector

protected LazyBinaryMapObjectInspector(ObjectInspector mapKeyObjectInspector,
                                       ObjectInspector mapValueObjectInspector)
Method Detail

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 © 2011 The Apache Software Foundation