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.apache.commons.logging.Log |
LOG |
bytes, length, start
isNull, 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, isNull
getInspector, getObject, setInspector, setNull
public static final org.apache.commons.logging.Log LOG
protected LinkedHashMap<Object,Object> cachedMap
protected LazyMap(LazyMapObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObjectBase
init
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 © 2017 The Apache Software Foundation. All rights reserved.