public abstract class AbstractParquetMapInspector extends Object implements SettableMapObjectInspector
ObjectInspector.Category| Modifier and Type | Field and Description |
|---|---|
protected ObjectInspector |
keyInspector |
protected ObjectInspector |
valueInspector |
| Constructor and Description |
|---|
AbstractParquetMapInspector(ObjectInspector keyInspector,
ObjectInspector valueInspector) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clear(Object map)
Clear the map.
|
Object |
create()
Create an empty map.
|
boolean |
equals(Object obj) |
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
Map<?,?> |
getMap(Object data)
returns null for data = null.
|
ObjectInspector |
getMapKeyObjectInspector() |
int |
getMapSize(Object data)
returns -1 for NULL map.
|
ObjectInspector |
getMapValueObjectInspector() |
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
int |
hashCode() |
Object |
put(Object map,
Object key,
Object value)
Add a key-value pair to the map.
|
Object |
remove(Object map,
Object key)
Remove a key-value pair from the map.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetMapValueElementprotected final ObjectInspector keyInspector
protected final ObjectInspector valueInspector
public AbstractParquetMapInspector(ObjectInspector keyInspector, ObjectInspector valueInspector)
public String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic ObjectInspector.Category getCategory()
ObjectInspectorgetCategory in interface ObjectInspectorpublic ObjectInspector getMapKeyObjectInspector()
getMapKeyObjectInspector in interface MapObjectInspectorpublic ObjectInspector getMapValueObjectInspector()
getMapValueObjectInspector in interface MapObjectInspectorpublic Map<?,?> getMap(Object data)
MapObjectInspectorgetMap in interface MapObjectInspectorpublic int getMapSize(Object data)
MapObjectInspectorgetMapSize in interface MapObjectInspectorpublic Object create()
SettableMapObjectInspectorcreate in interface SettableMapObjectInspectorpublic Object put(Object map, Object key, Object value)
SettableMapObjectInspectorput in interface SettableMapObjectInspectorpublic Object remove(Object map, Object key)
SettableMapObjectInspectorremove in interface SettableMapObjectInspectorpublic Object clear(Object map)
SettableMapObjectInspectorclear in interface SettableMapObjectInspectorCopyright © 2019 The Apache Software Foundation. All Rights Reserved.