public class LazyMapObjectInspector extends Object implements MapObjectInspector
ObjectInspector.Category| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
protected |
LazyMapObjectInspector() |
protected |
LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
LazyObjectInspectorParameters lazyParams) |
protected |
LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.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() |
LazyObjectInspectorParameters |
getLazyParams() |
Map<?,?> |
getMap(Object data)
returns null for data = null.
|
ObjectInspector |
getMapKeyObjectInspector() |
int |
getMapSize(Object data)
returns -1 for NULL map.
|
Object |
getMapValueElement(Object data,
Object key) |
ObjectInspector |
getMapValueObjectInspector() |
org.apache.hadoop.io.Text |
getNullSequence() |
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
boolean |
isEscaped() |
protected LazyMapObjectInspector()
protected LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector, ObjectInspector mapValueObjectInspector, byte itemSeparator, byte keyValueSeparator, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar)
protected LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector, ObjectInspector mapValueObjectInspector, byte itemSeparator, byte keyValueSeparator, LazyObjectInspectorParameters lazyParams)
public final ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic ObjectInspector getMapKeyObjectInspector()
getMapKeyObjectInspector in interface MapObjectInspectorpublic ObjectInspector getMapValueObjectInspector()
getMapValueObjectInspector in interface MapObjectInspectorpublic Object getMapValueElement(Object data, Object key)
getMapValueElement in interface MapObjectInspectorpublic Map<?,?> getMap(Object data)
MapObjectInspectorgetMap in interface MapObjectInspectorpublic int getMapSize(Object data)
MapObjectInspectorgetMapSize in interface MapObjectInspectorpublic byte getItemSeparator()
public byte getKeyValueSeparator()
public org.apache.hadoop.io.Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
public LazyObjectInspectorParameters getLazyParams()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.