public class LazyMap extends LazyNonPrimitive<LazyMapObjectInspector>
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<java.lang.Object,java.lang.Object> |
cachedMap
cachedMap is reused for different calls to getMap().
|
bytes, length, start
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.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getMap()
Return the map object representing this LazyMap.
|
int |
getMapSize()
Get the size of the map represented by this LazyMap.
|
java.lang.Object |
getMapValueElement(java.lang.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) |
getObject, hashCode
getInspector, setInspector
protected java.util.LinkedHashMap<java.lang.Object,java.lang.Object> cachedMap
protected LazyMap(LazyMapObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
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"LazyObjectBase.init(ByteArrayRef, int, int)
protected void enlargeArrays()
public java.lang.Object getMapValueElement(java.lang.Object key)
key
- The key object that we are looking for.public java.util.Map<java.lang.Object,java.lang.Object> getMap()
public int getMapSize()
protected boolean getParsed()
protected void setParsed(boolean parsed)
Copyright © 2012 The Apache Software Foundation