public class LazyArray extends LazyNonPrimitive<LazyListObjectInspector>
bytes, length, startisNull, oi| Modifier | Constructor and Description |
|---|---|
protected |
LazyArray(LazyListObjectInspector oi)
Construct a LazyArray object with the ObjectInspector.
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getList()
Returns the List of actual primitive objects.
|
Object |
getListElementObject(int index)
Returns the actual primitive object at the index position inside the array
represented by this LazyObject.
|
int |
getListLength()
Returns -1 for null array.
|
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyArray.
|
hashCode, isNull, isNullgetInspector, getObject, setInspector, setNullprotected LazyArray(LazyListObjectInspector oi)
oi - the oi representing the type of this LazyArray as well as meta
information like separator etc.public void init(ByteArrayRef bytes, int start, int length)
init in interface LazyObjectBaseinit in class LazyNonPrimitive<LazyListObjectInspector>bytes - The wrapper of the byte[].start - The start position inside the bytes.length - The length of the data, starting from "start"LazyObject.init(ByteArrayRef, int, int)public Object getListElementObject(int index)
public int getListLength()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.