public class StandardMapObjectInspector extends java.lang.Object implements SettableMapObjectInspector
ObjectInspector.Category| Modifier | Constructor and Description |
|---|---|
protected |
StandardMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector)
Call ObjectInspectorFactory.getStandardMapObjectInspector instead.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clear(java.lang.Object map)
Clear the map.
|
java.lang.Object |
create()
Create an empty map.
|
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
java.util.Map<?,?> |
getMap(java.lang.Object data)
returns null for data = null.
|
ObjectInspector |
getMapKeyObjectInspector() |
int |
getMapSize(java.lang.Object data)
returns -1 for NULL map.
|
java.lang.Object |
getMapValueElement(java.lang.Object data,
java.lang.Object key) |
ObjectInspector |
getMapValueObjectInspector() |
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
java.lang.Object |
put(java.lang.Object map,
java.lang.Object key,
java.lang.Object value)
Add a key-value pair to the map.
|
java.lang.Object |
remove(java.lang.Object map,
java.lang.Object key)
Remove a key-value pair from the map.
|
protected StandardMapObjectInspector(ObjectInspector mapKeyObjectInspector, ObjectInspector mapValueObjectInspector)
public ObjectInspector getMapKeyObjectInspector()
getMapKeyObjectInspector in interface MapObjectInspectorpublic ObjectInspector getMapValueObjectInspector()
getMapValueObjectInspector in interface MapObjectInspectorpublic java.lang.Object getMapValueElement(java.lang.Object data,
java.lang.Object key)
getMapValueElement in interface MapObjectInspectorpublic int getMapSize(java.lang.Object data)
MapObjectInspectorgetMapSize in interface MapObjectInspectorpublic java.util.Map<?,?> getMap(java.lang.Object data)
MapObjectInspectorgetMap in interface MapObjectInspectorpublic final ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic java.lang.String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic java.lang.Object create()
SettableMapObjectInspectorcreate in interface SettableMapObjectInspectorpublic java.lang.Object clear(java.lang.Object map)
SettableMapObjectInspectorclear in interface SettableMapObjectInspectorpublic java.lang.Object put(java.lang.Object map,
java.lang.Object key,
java.lang.Object value)
SettableMapObjectInspectorput in interface SettableMapObjectInspectorpublic java.lang.Object remove(java.lang.Object map,
java.lang.Object key)
SettableMapObjectInspectorremove in interface SettableMapObjectInspectorCopyright © 2012 The Apache Software Foundation