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()
Returns 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.
|
hashCode
setNull
protected LazyBinaryUnion(LazyBinaryUnionObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBase
init
in interface LazyObjectBase
init
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"ByteArrayRef
public Object getField()
public Object getObject()
LazyObjectBase
getObject
in interface LazyObjectBase
getObject
in class LazyBinaryNonPrimitive<LazyBinaryUnionObjectInspector>
public long getRawDataSerializedSize()
SerDeStatsStruct
getRawDataSerializedSize
in interface SerDeStatsStruct
public byte getTag()
Copyright © 2023 The Apache Software Foundation. All rights reserved.