public class LazyBinaryStruct extends LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector> implements SerDeStatsStruct
bytes, length, start
Modifier | Constructor and Description |
---|---|
protected |
LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
Construct a LazyBinaryStruct object with an ObjectInspector.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getField(int fieldID)
Get one field out of the struct.
|
java.util.ArrayList<java.lang.Object> |
getFieldsAsList()
Get the values of the fields as an ArrayList.
|
java.lang.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
protected LazyBinaryStruct(LazyBinaryStructObjectInspector oi)
public void init(ByteArrayRef bytes, int start, int length)
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 java.lang.Object getField(int fieldID)
fieldID
- The field IDpublic java.util.ArrayList<java.lang.Object> getFieldsAsList()
public java.lang.Object getObject()
LazyObjectBase
getObject
in class LazyBinaryNonPrimitive<LazyBinaryStructObjectInspector>
public long getRawDataSerializedSize()
SerDeStatsStruct
getRawDataSerializedSize
in interface SerDeStatsStruct
Copyright © 2012 The Apache Software Foundation