public class LazyBinaryMap extends LazyBinaryNonPrimitive<LazyBinaryMapObjectInspector>
bytes, length, start
Modifier | Constructor and Description |
---|---|
protected |
LazyBinaryMap(LazyBinaryMapObjectInspector oi) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustArraySize(int newSize)
Adjust the size of arrays: keyStart, keyLength valueStart, valueLength
keyInited, keyIsNull valueInited, valueIsNull.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getMap()
Return the map object representing this LazyBinaryMap.
|
int |
getMapSize()
Get the size of the map represented by this LazyBinaryMap.
|
java.lang.Object |
getMapValueElement(java.lang.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 LazyBinaryMap.
|
getObject, hashCode
protected LazyBinaryMap(LazyBinaryMapObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
init
in class LazyBinaryNonPrimitive<LazyBinaryMapObjectInspector>
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 adjustArraySize(int newSize)
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()
Copyright © 2012 The Apache Software Foundation