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 MapObjectInspector
public ObjectInspector getMapValueObjectInspector()
getMapValueObjectInspector
in interface MapObjectInspector
public java.lang.Object getMapValueElement(java.lang.Object data, java.lang.Object key)
getMapValueElement
in interface MapObjectInspector
public java.util.Map<?,?> getMap(java.lang.Object data)
MapObjectInspector
getMap
in interface MapObjectInspector
public int getMapSize(java.lang.Object data)
MapObjectInspector
getMapSize
in interface MapObjectInspector
public java.lang.String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
public ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
Copyright © 2012 The Apache Software Foundation