public class LazyMapObjectInspector extends java.lang.Object implements MapObjectInspector
ObjectInspector.Category| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Modifier | Constructor and Description |
|---|---|
protected |
LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
Text nullSequence,
boolean escaped,
byte escapeChar)
Call ObjectInspectorFactory.getStandardListObjectInspector instead.
|
| 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.
|
byte |
getEscapeChar() |
byte |
getItemSeparator() |
byte |
getKeyValueSeparator() |
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() |
Text |
getNullSequence() |
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
boolean |
isEscaped() |
protected LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector, ObjectInspector mapValueObjectInspector, byte itemSeparator, byte keyValueSeparator, Text nullSequence, boolean escaped, byte escapeChar)
public final ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic java.lang.String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic 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 byte getItemSeparator()
public byte getKeyValueSeparator()
public Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
Copyright © 2012 The Apache Software Foundation