public class LazyMap extends LazyNonPrimitive<LazyMapObjectInspector>
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<Object,Object> |
cachedMap
cachedMap is reused for different calls to getMap().
|
static org.slf4j.Logger |
LOG |
bytes, length, startisNull, oi| Modifier | Constructor and Description |
|---|---|
protected |
LazyMap(LazyMapObjectInspector oi)
Construct a LazyMap object with the ObjectInspector.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
enlargeArrays()
Enlarge the size of arrays storing information for the elements inside the
array.
|
Map<Object,Object> |
getMap()
Return the map object representing this LazyMap.
|
int |
getMapSize()
Get the size of the map represented by this LazyMap.
|
Object |
getMapValueElement(Object key)
Get the value in the map for the key.
|
protected boolean |
getParsed() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyArray.
|
protected void |
setParsed(boolean parsed) |
hashCode, isNull, isNullgetInspector, getObject, setInspector, setNullpublic static final org.slf4j.Logger LOG
protected LinkedHashMap<Object,Object> cachedMap
protected LazyMap(LazyMapObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
init in interface LazyObjectBaseinit in class LazyNonPrimitive<LazyMapObjectInspector>bytes - The wrapper of the byte[].start - The start position inside the bytes.length - The length of the data, starting from "start"LazyObject.init(ByteArrayRef, int, int)protected void enlargeArrays()
public Object getMapValueElement(Object key)
key - The key object that we are looking for.public Map<Object,Object> getMap()
public int getMapSize()
protected boolean getParsed()
protected void setParsed(boolean parsed)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.