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.
|
hashCode
setNull
protected LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBase
init
in interface LazyObjectBase
init
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"ByteArrayRef
public Object getField(int fieldID)
getField
in interface StructObject
fieldID
- The field IDpublic ArrayList<Object> getFieldsAsList()
getFieldsAsList
in interface StructObject
public Object getObject()
LazyObjectBase
getObject
in interface LazyObjectBase
getObject
in class LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector>
public long getRawDataSerializedSize()
SerDeStatsStruct
getRawDataSerializedSize
in interface SerDeStatsStruct
Copyright © 2017 The Apache Software Foundation. All rights reserved.