|
||||||||||
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.
Method Summary | |
---|---|
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. |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyArray. |
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
---|
getObject, hashCode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
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)
public Object getMapValueElement(Object key)
key
- The key object that we are looking for.
public Map<Object,Object> getMap()
public int getMapSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |