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.
|
Map<Object,Object> |
getMap()
Return the map object representing this LazyBinaryMap.
|
int |
getMapSize()
Get the size of the map represented by this LazyBinaryMap.
|
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 LazyBinaryMap.
|
getObject, hashCode
setNull
protected LazyBinaryMap(LazyBinaryMapObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObjectBase
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 Object getMapValueElement(Object key)
key
- The key object that we are looking for.public Map<Object,Object> getMap()
public int getMapSize()
Copyright © 2017 The Apache Software Foundation. All rights reserved.