|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive<LazyMapObjectInspector>
org.apache.hadoop.hive.serde2.lazy.LazyMap
public class LazyMap
LazyMap stores a map of Primitive LazyObjects to LazyObjects. Note that the keys of the map cannot contain null. LazyMap does not deal with the case of a NULL map. That is handled by the parent LazyObject.
| Field Summary | |
|---|---|
protected LinkedHashMap<Object,Object> |
cachedMap
cachedMap is reused for different calls to getMap(). |
| Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
|---|
bytes, length, start |
| Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject |
|---|
oi |
| Constructor Summary | |
|---|---|
protected |
LazyMap(LazyMapObjectInspector oi)
Construct a LazyMap object with the ObjectInspector. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
|---|
getObject, hashCode |
| Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject |
|---|
getInspector, setInspector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LinkedHashMap<Object,Object> cachedMap
| Constructor Detail |
|---|
protected LazyMap(LazyMapObjectInspector oi)
| Method Detail |
|---|
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 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||