|
||||||||||
| 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<LazySimpleStructObjectInspector>
org.apache.hadoop.hive.serde2.lazy.LazyStruct
public class LazyStruct
LazyObject for storing a struct. The field of a struct can be primitive or non-primitive. LazyStruct does not deal with the case of a NULL struct. That is handled by the parent LazyObject.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
|---|
bytes, length, start |
| Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject |
|---|
oi |
| Constructor Summary | |
|---|---|
LazyStruct(LazySimpleStructObjectInspector oi)
Construct a LazyStruct object with the ObjectInspector. |
|
| Method Summary | |
|---|---|
Object |
getField(int fieldID)
Get one field out of the struct. |
protected boolean[] |
getFieldInited()
|
protected LazyObject[] |
getFields()
|
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. |
protected boolean |
getParsed()
|
long |
getRawDataSerializedSize()
Rerurns the serialized size of the object. |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyStruct. |
protected void |
setFieldInited(boolean[] fieldInited)
|
protected void |
setFields(LazyObject[] fields)
|
protected void |
setParsed(boolean parsed)
|
| Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
|---|
hashCode |
| Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject |
|---|
getInspector, setInspector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyStruct(LazySimpleStructObjectInspector oi)
| Method Detail |
|---|
public void init(ByteArrayRef bytes,
int start,
int length)
init in class LazyNonPrimitive<LazySimpleStructObjectInspector>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 getField(int fieldID)
fieldID - The field ID
public ArrayList<Object> getFieldsAsList()
public Object getObject()
LazyObjectBase
getObject in class LazyNonPrimitive<LazySimpleStructObjectInspector>protected boolean getParsed()
protected void setParsed(boolean parsed)
protected LazyObject[] getFields()
protected void setFields(LazyObject[] fields)
protected boolean[] getFieldInited()
protected void setFieldInited(boolean[] fieldInited)
public long getRawDataSerializedSize()
SerDeStatsStruct
getRawDataSerializedSize in interface SerDeStatsStruct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||