public class LazyBinaryStruct extends LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector> implements StructObject, SerDeStatsStruct
| Modifier and Type | Class and Description |
|---|---|
static class |
LazyBinaryStruct.SingleFieldGetter |
bytes, length, start| Modifier | Constructor and Description |
|---|---|
protected |
LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
Construct a LazyBinaryStruct object with an ObjectInspector.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
hashCodesetNullprotected LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBaseinit in interface LazyObjectBaseinit 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"ByteArrayRefpublic Object getField(int fieldID)
getField in interface StructObjectfieldID - The field IDpublic ArrayList<Object> getFieldsAsList()
getFieldsAsList in interface StructObjectpublic Object getObject()
LazyObjectBasegetObject in interface LazyObjectBasegetObject in class LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector>public long getRawDataSerializedSize()
SerDeStatsStructgetRawDataSerializedSize in interface SerDeStatsStructCopyright © 2017 The Apache Software Foundation. All rights reserved.