public class DelegatedMapObjectInspector extends java.lang.Object implements MapObjectInspector
ObjectInspector.Category| Constructor and Description |
|---|
DelegatedMapObjectInspector(MapObjectInspector delegate) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
reset(MapObjectInspector current) |
public DelegatedMapObjectInspector(MapObjectInspector delegate)
public void reset(MapObjectInspector current)
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 java.util.Map<?,?> getMap(java.lang.Object data)
MapObjectInspectorgetMap in interface MapObjectInspectorpublic int getMapSize(java.lang.Object data)
MapObjectInspectorgetMapSize in interface MapObjectInspectorpublic java.lang.String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorCopyright © 2012 The Apache Software Foundation