|
||||||||||
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.lazybinary.LazyBinaryObject<OI>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryNonPrimitive<LazyBinaryListObjectInspector>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryArray
public class LazyBinaryArray
LazyBinaryArray is serialized as follows: start A b b b b b b end bytes[] -> |--------|---|---|---|---| ... |---|---| Section A is the null-bytes. Suppose the list has N elements, then there are (N+7)/8 bytes used as null-bytes. Each bit corresponds to an element and it indicates whether that element is null (0) or not null (1). After A, all b(s) represent the elements of the list. Each of them is again a LazyBinaryObject.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryNonPrimitive |
---|
bytes, length, start |
Constructor Summary | |
---|---|
protected |
LazyBinaryArray(LazyBinaryListObjectInspector oi)
Construct a LazyBinaryArray object with the ObjectInspector. |
Method Summary | |
---|---|
List<Object> |
getList()
Returns the List of actual primitive objects. |
Object |
getListElementObject(int index)
Returns the actual primitive object at the index position inside the array represented by this LazyBinaryObject. |
int |
getListLength()
Returns the array size. |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyBinaryArray. |
Methods inherited from class org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryNonPrimitive |
---|
getObject, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LazyBinaryArray(LazyBinaryListObjectInspector oi)
oi
- the oi representing the type of this LazyBinaryArrayMethod Detail |
---|
public void init(ByteArrayRef bytes, int start, int length)
init
in class LazyBinaryNonPrimitive<LazyBinaryListObjectInspector>
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 getListElementObject(int index)
public int getListLength()
public List<Object> getList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |