public class LazyBinaryUnion extends LazyBinaryNonPrimitive<LazyBinaryUnionObjectInspector> implements SerDeStatsStruct
bytes, length, start| Modifier | Constructor and Description |
|---|---|
protected |
LazyBinaryUnion(LazyBinaryUnionObjectInspector oi)
Construct a LazyBinaryUnion object with an ObjectInspector.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getField()
Get the set field out of the union.
|
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.
|
byte |
getTag()
Get the set field's tag
|
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase.
|
hashCodesetNullprotected LazyBinaryUnion(LazyBinaryUnionObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBaseinit in interface LazyObjectBaseinit in class LazyBinaryNonPrimitive<LazyBinaryUnionObjectInspector>bytes - The wrapper of the byte[].start - The start position inside the bytes.length - The length of the data, starting from "start"ByteArrayRefpublic Object getField()
public Object getObject()
LazyObjectBasegetObject in interface LazyObjectBasegetObject in class LazyBinaryNonPrimitive<LazyBinaryUnionObjectInspector>public long getRawDataSerializedSize()
SerDeStatsStructgetRawDataSerializedSize in interface SerDeStatsStructpublic byte getTag()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.