public class LazyBinaryMapObjectInspector extends StandardMapObjectInspector
LazyBinaryMap
ObjectInspector.Category
Modifier | Constructor and Description |
---|---|
protected |
LazyBinaryMapObjectInspector() |
protected |
LazyBinaryMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector) |
Modifier and Type | Method and Description |
---|---|
Map<?,?> |
getMap(Object data)
returns null for data = null.
|
int |
getMapSize(Object data)
returns -1 for NULL map.
|
Object |
getMapValueElement(Object data,
Object key) |
clear, create, getCategory, getMapKeyObjectInspector, getMapValueObjectInspector, getTypeName, put, remove
protected LazyBinaryMapObjectInspector()
protected LazyBinaryMapObjectInspector(ObjectInspector mapKeyObjectInspector, ObjectInspector mapValueObjectInspector)
public Map<?,?> getMap(Object data)
MapObjectInspector
getMap
in interface MapObjectInspector
getMap
in class StandardMapObjectInspector
public int getMapSize(Object data)
MapObjectInspector
getMapSize
in interface MapObjectInspector
getMapSize
in class StandardMapObjectInspector
public Object getMapValueElement(Object data, Object key)
getMapValueElement
in interface MapObjectInspector
getMapValueElement
in class StandardMapObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.