|
||||||||||
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<LazyUnionObjectInspector>
org.apache.hadoop.hive.serde2.lazy.LazyUnion
public class LazyUnion
LazyObject for storing a union. The field of a union can be primitive or non-primitive.
Constructor Summary | |
---|---|
LazyUnion(LazyUnionObjectInspector oi)
Construct a LazyUnion object with the ObjectInspector. |
Method Summary | |
---|---|
Object |
getField()
Get the field out of the union. |
byte |
getTag()
Get the tag of the union |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyUnion. |
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
---|
getObject, hashCode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazyUnion(LazyUnionObjectInspector oi)
Method Detail |
---|
public void init(ByteArrayRef bytes, int start, int length)
init
in class LazyNonPrimitive<LazyUnionObjectInspector>
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()
public byte getTag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |