|
||||||||||
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<LazyBinaryStructObjectInspector>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryStruct
public class LazyBinaryStruct
LazyBinaryStruct is serialized as follows: start A B A B A B end bytes[] -> |-----|---------|--- ... ---|-----|---------| Section A is one null-byte, corresponding to eight struct fields in Section B. Each bit indicates whether the corresponding field is null (0) or not null (1). Each field is a LazyBinaryObject. Following B, there is another section A and B. This pattern repeats until the all struct fields are serialized.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryNonPrimitive |
---|
bytes, length, start |
Constructor Summary | |
---|---|
protected |
LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
Construct a LazyBinaryStruct object with an ObjectInspector. |
Method Summary | |
---|---|
Object |
getField(int fieldID)
Get one field out of the struct. |
ArrayList<Object> |
getFieldsAsList()
Get the values of the fields as an ArrayList. |
Object |
getObject()
If the LazyObjectBase is a primitive Object, then deserialize it and return the actual primitive Object. |
long |
getRawDataSerializedSize()
Rerurns the serialized size of the object. |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase. |
Methods inherited from class org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryNonPrimitive |
---|
hashCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
Method Detail |
---|
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBase
init
in class LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector>
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"ByteArrayRef
public Object getField(int fieldID)
fieldID
- The field ID
public ArrayList<Object> getFieldsAsList()
public Object getObject()
LazyObjectBase
getObject
in class LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector>
public long getRawDataSerializedSize()
SerDeStatsStruct
getRawDataSerializedSize
in interface SerDeStatsStruct
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |